Previous Candle

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #9130 quote
    MG8418MG8418
    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
    AdolfoAdolfo
    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.
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

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 AdolfoAdolfo
10 years, 3 months ago.

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