2 arrows in last 4 candles with 5 pips distance
-
Hi folks.
i searched all the forum for hours but couldnt find the answer
i have a custom nonrepaint indicator. it draws arrows.
i want it to open sell order if these 3 conditions matches;
1 .) if actual bar have sell signal
2.) if the any last 4 bars have at least 1 sell signal
3.) if the pips difference between these 2 signals must be below than 5 pips
thanks you all
-
@egeunilicem T off to connect your extra buy/sell blacks rather than connect in a row, in the indicator appears block you can select the candle ID, connect in a others in a row, and connect others with the yellow, so if it's not on the candle you want it passes to the yellow to try a different combination, you can then connect via another yellow until all combinations have been tried. As for the pips difference choose what level this counts, use +/-5pips in the adjust box, for example candle 1 low is > candle 2 low + 5pips.
-
Trying adding 'condition'
-
@fxdreema-co-uk yes a condition but how. have an example ?
-
@egeunilicem You should use a variable for condition 2. Conditions 1 and 3 can be checked on candle ID 0 but condition 2 doesn't. You need to store the information of condition 2 on a variable and then use it to check it out later on candle ID 0.
-
@l-andorrà said in 2 arrows in last 4 candles with 5 pips distance:
3 can be checked on candle ID 0
"3 can be checked on candle ID 0 "
i am not familiar with candle id logic. have a similar example please ?
thanks for your reply
-
thanks for your reply. seems correct to create seperate logics with "if not" . but i am a newbie and dont have much knowledge about the platform. can you share an example for a such "if not / ID" connection please . thank yuu
-
thanks for the comments. last 4 candles are ok with "indicator visible" blocks . thank you
i still have ;
"5 pips distance between opening of the bar that has signal" problem
it is also ok to code ;
"last 4 candles' openings difference is 5 pips max"
i want the last 4 candles be in a sideway move. not trending....
it is near to that i want. helps appreciated
-
@egeunilicem Do you have any initial project to begin with? That would make it easier.