Not logged in
Viewing 5 posts - 1 through 5 (of 5 total)

Forums>AlgoWizard / EA Wizard>General Discussion>Signal appears after a specific date

  • #112500 |
    Customer
    112 Posts

    EA Signal indicator function

     

    How to let EA Signal to appear only after a specific date? like 18th Aug 2014

     

    Thanks.

    #125952
    Mark Fric
    Administrator
    1182 Posts

    you can use date functions to check for an date, or to check if current date is greater than your constant.

    Mark
    StrategyQuant architect

    #125979
    Customer
    112 Posts

    The Date func has only “=” and “” operators and does not has greater or lesser than operator. May be I have misunderstood your reply. 

     

     

    I tried both “=” and “” and not the results I am looking for. 

     

     

    I have attached my sqw file, are you able to show me how to do this right? Thanks very much. 

     

    IF

     

    EMA 10(D1) > EMA 20(D1)

    Date > 14 Aug 2014

     

    THEN

    PlaySound(“alert.wav”);

     

     

    I would like the signal to appear after 14 Aug 2014 so that the chart is not clustered with signals.

     

     

     

     

    Attachments in this forum are visible only for registered users.
    #126019
    Mark Fric
    Administrator
    1182 Posts

    The problem is that Date function returns date as a text only, so it cannot be compared to be bigger or smaller.

     

    But there is a simple way how to compare a date, use:

     

    Time > Custom Function: StrToTime(“2014.08.14”)

     

    date format for StrToTime is is yyyy.mm.dd.

     

    I’m attaching your strategy with this change.

    Attachments in this forum are visible only for registered users.

    Mark
    StrategyQuant architect

    #126036
    Customer
    112 Posts

    Thank you very much.. :)

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.