ramaParticipant
Senior
As we all know pro real time places orders at only time intervals.
I want to trade in a trending market.
if the hourly candle is going down say for 8 am to 9 am
if the trend is down and say market is going down by 100 points
I want to sell at x-10, x-20, x-30 where is x is the price at the beginning of the hourly candle
I want to place the order in 15 seconds
the reason for this I want to keep moving my stop losses for individual orders in my favor( which is not possible on cumulative orders on hourly candle)
You have to use the recent MTF (Multiple Time Frame) feature and use 10 seconds as the main TF, within your strategy you will then be able to use any other higher TF provided it’s multiple of 10 seconds.
Unfortunately this will lower your data history to just a few days when backtesting.
If you search MTF you will find many examples and videos.
VNParticipant
Average
Hi Nicolas, I am trying to do something similar but my base timeframe is at 1 min and I want to use a 30 second time period to evaluate a number of conditions, but it when I tried running the code it is saying that all timeframes used in the code must be multiples of the base timeframe. I tried doing it on 10 sec and also on 1 second and it still not liking it.
Is this to be expected?
You must launch your strategy on the fastest time frame and make sure that all time frames used in the strategy can be divided into each other.