Previous Candle

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #9130 quote
    MG8418
    Participant
    Junior

    Hi,

    I would like to place an order that is 4 point above or below the high or low of the previous candle and I am struggling to write the code that would allow me to do this.

    Can anyone help me with this?

     

    Thanks

    Derek

    #9133 quote
    Adolfo
    Participant
    Senior
    BuyPrice = HIGH+4*PipSize
    SellPrice = LOW-4*PipSize
    
    IF myconditions then
    Buy at BuyPrice STOP
    SellShort at SellPrice STOP
    ENDIF
    
    

    You’re wellcome

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

Previous Candle


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
MG8418 @mg8418 Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by Adolfo
9 years, 8 months ago.

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