Multitimeframe Order Exit

Viewing 5 posts - 16 through 20 (of 20 total)
  • Author
    Posts
  • #178046 quote
    Amr600
    Participant
    New

    Another question:

    Now it is selling at the next open.

     

    What is the code if i want it to be the one after the next?

    #178048 quote
    robertogozzi
    Moderator
    Master

    Try this one:

    Timeframe (5 minutes, updateonclose)
    ONCE ExitTrade = 0
    IF Not OnMarket THEN
       ExitTrade = 0
    ENDIF
    IF ExitTrade = 1 THEN
       SELL AT Market
       EXITSHORT AT Market
    ENDIF
    IF OnMarket THEN
       ExitTrade = abs(ExitTrade - 1)
    ENDIF
    #178051 quote
    Amr600
    Participant
    New

    THANK YOU VERY MUCH!!!

     

    What do I owe you?

    #178055 quote
    robertogozzi
    Moderator
    Master

    A glass of red wine would be highly appreciated! 🙂

    #178112 quote
    Amr600
    Participant
    New

    One day i come to italia and u weill get a bottle!

    robertogozzi thanked this post
Viewing 5 posts - 16 through 20 (of 20 total)
  • You must be logged in to reply to this topic.

Multitimeframe Order Exit


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
Amr600 @amr600 Participant
Summary

This topic contains 19 replies,
has 3 voices, and was last updated by Amr600
4 years, 5 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 09/20/2021
Status: Active
Attachments: 1 files
Logo Logo
Loading...