Immediate at market buy code

Forums ProRealTime English forum ProOrder support Immediate at market buy code

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

    Is it possible to have code to buy at market immediately as the signal is generated, rather than at market which is on the open of the next candle? any help would be greatly appreciated.

    #87980

    Yes, it is possible, but with multi timeframe coding instructions, not yet activated publicly (still beta).

    Firstly, embed all your strategy code into the desired timeframe: (15-minutes one for example)

    Then, embed in timeframe “default”, the orders management. Default timeframe will be the one where the strategy will be running, so in order to get almost instantaneous code reading, send it on the smaller timeframe possible (aka 1-second TF):

    So in this example, the “test” variable will be sync with the default timeframe, the test condition will be tested each second, but with the RSI value from the 15-minutes TF.

    Also, keep in mind that the RSI value will continuously changing during the 15 minutes bar, changing its value depending of new ticks received each new second. It is possible to use the RSI value the “normal” way, with calculation made only at bar Close with “timeframe(15 minutes,updateonclose)”, but it would make no sense here as per your initial request.

     

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