Multitimeframe Order Exit

Viewing 5 posts - 16 through 20 (of 20 total)
  • Author
    Posts
  • #178046 quote
    Amr600Amr600
    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
    robertogozzirobertogozzi
    Moderator
    Legend

    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
    Amr600Amr600
    Participant
    New

    THANK YOU VERY MUCH!!!

     

    What do I owe you?

    #178055 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    A glass of red wine would be highly appreciated! 🙂

    #178112 quote
    Amr600Amr600
    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.
ProRealAI ProRealAI New

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

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 Amr600Amr600
4 years, 12 months ago.

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