How to set TP based on some custom indicator
-
I have a custom indicator in histogram form and so i want the EA to open a buy or sell trade based on that indicator for example if the indicator crossess 0 level ON CLOSE OF THE CANDLE from below to obove then I'd like the EA to open buy position and vice versa for sell trade.
And also i dont want fixed TP so i want my tp to be based on another custom indicator (which is in the form of a histogram) so if a buy trade is running and if the histogram turns red( meaning crossess 0 on candle close) then i want the trade to stop.Can anyone help me with this please.
-
@profaalaa
Can you attach the indcator or give a link and show a screen shot of what you want -
@raiderspaz
Here's the link for entry setup
https://drive.google.com/file/d/15YVg_IdHUlhamUwESFbA_jHpQlltf02_/view?usp=drivesdk -
@raiderspaz look at the indicator in the picture... When the indicator crossess 0 level on current forming candle i wana wait until the candle has been fully formed so if then the indicator has crossed the 0 level either to upside or downside then on that candle then i want to enter on the very next candle to go short or long depending on the indicator(i labelled where i want to enter on the picture)
Can this be done?? -
@profaalaa Yes, it can be done, but you will need a specific structure for it: importing the custom indicator, checking the buffers, etc. It is not a simplt 2 blocks solution if that is what you are looking for.