Announcement

Collapse
No announcement yet.

.ela Files ?????? Help!!!!!!

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

  • .ela Files ?????? Help!!!!!!

    I REALLY NEED SOME HELP HERE I HAVE FOUND A FORMULA FOR RANGEBREAKOUTS WHICH IS A STRATEGY I LIKE TO TRADE THE ONLY THING IS THE FILE IS A- .ELA FILE WHICH I DON'T THINK E .SIGNAL RECOGNISES .

    WHAT I DID WAS COPY THE FILE WENT TO TOOLS-EFS-EDITOR AND PASTED THE FORMULA IN THE EDITOR.WHEN I TRIED TO APPLY THE FORMULA WITH THE CHARTS IT SAID SYNTAX ERROR.

    I 'M NO EXPERT AT WRITING FORMULA'S AND DON'T HAVE MUCH KNOWLEDGE OF FORMULA SCRIPTS CAN ANYONE HELP ME ??


    BELOW IS A COPY OF THE RANGEBRKOUT FORMULA IN .ELA STYLE WHAT DO I NEED TO DO TO MAKE THE FORMULA WORK IN MY EISGNAL PROGRAM????



    VARS: COUNTER(0), TN(0), TNRANGE(0), TNHIGH(0), TNLOW(0);

    TNRANGE=HIGHEST(HIGH,5)-LOWEST(LOW,5);

    VALUE2=0;
    FOR VALUE1=0 TO 4 BEGIN
    VALUE2=VALUE2+(TNRANGE-RANGE[VALUE1]);
    END;

    IF TNRANGE*2>VALUE2 THEN TN=1 ELSE TN=0;
    IF TN=1 THEN BEGIN
    TNHIGH=HIGHEST(HIGH,5);
    TNLOW=LOWEST(LOW,5);
    END;

    IF MARKETPOSITION=0 AND CLOSE>TNHIGH AND RANGE>AVERAGE(RANGE,8)*1.25 THEN BUY AT CLOSE;
    IF MARKETPOSITION=0 AND CLOSEAND RANGE>AVERAGE(RANGE,8)*1.25 THEN SELL AT CLOSE;

    IF CLOSE < AVERAGE(LOW,8) THEN EXITLONG AT CLOSE;
    IF CLOSE > AVERAGE(HIGH,10) THEN EXITSHORT AT CLOSE;

    IF MARKETPOSITION<>0 THEN BEGIN
    TNHIGH=9999;
    TNLOW=0;
    END;

    BELOW IS ANOTHER RANGE BREAKOUT FORMULA

    EasyLanguage Code:

    VARS: COUNTER(0), TN(0);


    TN=HIGHEST(HIGH,5)-LOWEST(LOW,5);
    VALUE2=0;
    FOR VALUE1=0 TO 4 BEGIN
    VALUE2=VALUE2+(TN-RANGE[VALUE1]);
    END;
    IF TN*2>VALUE2 THEN PLOT1(HIGH," ");

  • #2
    silverxx12

    WHAT I DID WAS COPY THE FILE WENT TO TOOLS-EFS-EDITOR AND PASTED THE FORMULA IN THE EDITOR.WHEN I TRIED TO APPLY THE FORMULA WITH THE CHARTS IT SAID SYNTAX ERROR.

    Javascript which is used in EFS is a completely different programming language from Easy Language hence you can't simply copy and paste from one to the other. That is why you are getting syntax errors.

    BELOW IS A COPY OF THE RANGEBRKOUT FORMULA IN .ELA STYLE WHAT DO I NEED TO DO TO MAKE THE FORMULA WORK IN MY EISGNAL PROGRAM????

    It will need to be rewritten for EFS. Some of the options on how to do this are outlined in this message.

    Lastly, FWIW I think there is an error in the ela code as you posted it.

    Alex

    Comment

    Working...
    X