Not logged in

Forums

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

Forums>EA Wizard>Make my EA>Short after Long

  • #116472 |
    Participant
    32 Posts

    Hello,

     

    I have an algo where Long is opened first at given time and after its closed short can be opened at same price as Long was. I dont have a problem with first part but can’t managed to have short working. Only one Long and one Short is possible.

    To reset algo I set Date[0] <> Date[1], but will it be working if Long is opened at 12pm and short at 1am and again Long at 12pm?

     

    Thanks for any advice how to fixed.

     

     

    Attachments in this forum are visible only for registered users.
    #142070
    Moderator
    2349 Posts

    Hello,

     

    ok, I will check your project and modify it

    #142071
    Participant
    32 Posts

    Thanks Tomas

    #142104
    Moderator
    2349 Posts

    Hello,

     

    it seems you use exit time set to 11 while earliest for the short trade is 12 o’clock so the short trade can never happen? Is this done so intentionally?

    #142106
    Participant
    32 Posts

    Yes, let say ref candle is 12pm. At this time long is entered, let say price want drop to 12pm price until 1am next day where short is entered. Closing time for trades and reset is 11am and at 12 pm new cycle goes on.
    I asked my question regarding reset, because trading on daily candles Date[1]Date[2] its obvious, but Im not do sure with this setup

    #142162
    Participant
    32 Posts

    Hi Tomas, did you find answer, because I’ve seen you’ve helped others?

    #142169
    Moderator
    2349 Posts

    Hello,

     

    sorry for not getting back to you sooner. I am still not sure about the rules of your trading. If I get it right you:

    1) always enter a long position at 12pm 

    2) if market continues higher you close the position at “Close time”

    3) if market trades below the long position price your reverse to short

    4) if market turns back up and crosses price set up at 12pm you again go long 

    5) you can do another revers until “Max Trades Per Day” is reached or you reach the end of trading session – “Trade Close Time

     

    Is that correct?

    #142170
    Participant
    32 Posts

    Hello,

    Rules are very simple

    Long at 12pm
    If TP reached then enter short at same price as long (short only if TP long was met)
    Reset next day before 12pm

    #142171
    Participant
    32 Posts

    Just have seen last question.
    Only one long and one short possibel

    #142183
    Moderator
    2349 Posts

    Hello,

     

    I have modified your project. Now it seems to be working ok

     

    Let me know if any questions

     

     

    Attachments in this forum are visible only for registered users.
    #142185
    Participant
    32 Posts

    Thanks a lot:)

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

You must be logged in to reply to this topic.