Need assistance coding a strategy

Forums ProRealTime English forum General trading discussions Need assistance coding a strategy

Viewing 2 posts - 1 through 2 (of 2 total)
  • #224094

    Hey team,

     

    i cant seem to get the strategy builder to do what I want.

     

    I want it to execute the trade if the chart moves x points from the opening of a candle in either direction. the trade is to be executed in the same direction as the movement. for example, the 10 am candle opens at 4500 when it gets to 4502.5 i want to it buy or when it gets to 4497.5 i want it to sell.  Obviously, it will need to program SL and TP’s also.

    i understand it will need to be a tick-based strategy that executes before the candle closes but couldn’t figure out the basic of getting the Strat builder to execute after a time and price movement

    Any help would be greatly appreciated!!

    Beaker

    #225521

    The problem is that to place an order on the 10am opening price, you have to wait for this candlestick to close.
    Your code is therefore based on the candlestick closing just before 10:00, not the one that opens at 10:00, but it is indeed the simplest.

    On the other hand, you’ve reversed the level required for buying and selling + not the notion of a point, which I think is more appropriate:

Viewing 2 posts - 1 through 2 (of 2 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login