Current price

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #11156 quote
    WarsyWarsy
    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
    NicolasNicolas
    Keymaster
    Legend

    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
    WarsyWarsy
    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.
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

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 WarsyWarsy
10 years, 2 months ago.

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