Announcement

Collapse
No announcement yet.

Auto Trading

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Auto Trading

    Attempting to design a program in efs that will use two indicators, CCI and Linear Regression and when certain conditions are met place an order using paper trade. The CCI plots O.K. but the orders are not being placed. I checked the other BB messages but still can't get it to work. What am I missing?
    Attached Files

  • #2
    marvslater
    The syntax for all the functions being used throughout the script (ie cci(), upperLinearReg() and highest()) is invalid. To highlight a few examples
    cci(25,"close",sym("EUR A0-FX"),inv(10),0)
    should be
    cci(25,close(sym("EUR A0-FX,10")),0)
    while
    lowerLinearReg(50, 1,"hlc3", sym("EUR A0-FX")
    should be
    lowerLinearReg(50, 1, hlc3(sym("EUR A0-FX")))
    and
    highest(20, "cci")
    should be
    highest(20,cci())
    Also while it is possible to use isIntrade as a variable as you are doing in the script it would be preferable to name the variable differently since there already is a function isInTrade() which is part of the Strategy Object.
    I would suggest that you download the most recent EFS2 Help file [called eSignalEFS2.chm] which is available here and use the examples provided for each function to rewrite your script.
    Lastly since you appear to be generating signals based on external intervals I would strongly suggest that you read this post that deals specifically with issues that may arise when using logic that deals with multiple time frames.
    Alex

    Comment

    Working...
    X