Candle help

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #14988 quote
    Abz
    Participant
    Veteran

    im looking for programming help for this scenario

    if the bar closes in RED i want to enter short position once the first green bar appear after this bar and vice versa. I also want to check how big the bar is , for example open price is 10$ close price 11$ . i only want to star looking for the next bar if the price difference betwen open and close is minimum 3$ or -3$

    is this correct?

    // Conditions to enter Long positions

    c1 = open < close and close – open > 5
    c2 = open > close and open – close > 5

    // Conditions to enter Short positions

    c3 = open > close and open – close > 5
    c4 = open < close and close – open > 5

    thanks for any help

    #15137 quote
    Abz
    Participant
    Veteran

    anyone have any idea ?

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

Candle help


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
Abz @abbas_sadiq Participant
Summary

This topic contains 1 reply,
has 1 voice, and was last updated by Abz
9 years, 4 months ago.

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