Pending Orders strategy with a reference candlestick

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #153304 quote
    Sun HxiaoSun Hxiao
    Participant
    New
    Hello, I would like to code the following strategy for PRO REAL TIME with PROREALCODE language, NOT MQL4: CANDLE OF REFERENCE (COR) = Candle time according to time frame. Example for Time Frame “1mn” : if COR = 0730 = candle from 07h30 to 07h31 Example for time frame “15mn”: if COR = 0700 = candle from 07h00 to 07h15 H = Highest point of Candle of Reference L= Lowest point of Candle of Reference FH price = Final High price = Highest point of Candle of Reference + X points FL price = Final Low price = Lowest point of Candle of Reference – Y points When COR is completed (example: at 07h31 if COR = 07h30) BUY STOP at FH price and SELL STOP at FL price are placed. If market price reaches FH price, a buy order at market price is triggered with a TP equal to [H-L-Z] and a SL equal to [H-L-W]. SELL STOP ORDER previously placed at FL price is then canceled. If market price reaches FL price, a sell order at market price is triggered with a TP equal to [H-L-Z] and a SL equal to [H-L-W]. BUY STOP ORDER previously placed at FH price is then canceled. If any, closed open positions at TIMECLOSE.
    #153307 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    >> Please update your country flag in your profile. Thank you 🙂 <<

    #153331 quote
    VonasiVonasi
    Moderator
    Master
    ….and post in the correct forum as per the forum rules. _ ProRealTime Platform Support: only platform related issues. _ ProOrder: only strategy topics. _ ProBuilder: only indicator topics. _ ProScreener: only screener topics _ General Discussion: any other topics. _ Welcome New Members: for new forum members to introduce themselves.   I have moved your topic to the correct forum. Please be more careful with any future topics. 🙂
Viewing 3 posts - 1 through 3 (of 3 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

Pending Orders strategy with a reference candlestick


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
Sun Hxiao @sun_hxiao Participant
Summary

This topic contains 2 replies,
has 3 voices, and was last updated by VonasiVonasi
5 years, 10 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 12/11/2020
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...