Current price

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #11156 quote
    Warsy
    Participant
    New

    Can someone help me with this: I want to buy as soon as the current price is 3 pips higher than the high of the previous candlestick. How can I can access the current price in the middle of the current candlestick.

    IF CLOSE>HIGH+0.0003 THEN
    BUY AT MARKET
    ENDIF

    #11177 quote
    Nicolas
    Keymaster
    Master

    The best you can do is to set a pending order at the price you want your order to be launched at market:

    if mycondition then 
     BUY 1 SHARE AT HIGH+3*pipsize STOP
    endif
    
    

    Pending “stop” or “limit” orders need to be set at each new candle, because they expire after one candle, so you have to be sure that your “mycondition” in my example if still true if your are still not on market.

    #11196 quote
    Warsy
    Participant
    New

    Thank you Nicolas. It works perfectly.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

Current price


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
Warsy @warsy Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by Warsy
9 years, 7 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 08/02/2016
Status: Active
Attachments: No files
Logo Logo
Loading...