Instead of
ObjectCreate( ChartWindowFind(0,"AH5"),"LINE1",OBJ_HLINE,0,Time[0],OrderOpenPrice());
You may do better with
ObjectCreate( 0,"LINE1",OBJ_HLINE,ChartWindowFind(0,"AH5"),Time[0],OrderOpenPrice());
But if AH5 is in a separate window you need to be sure that the OrderOpenPrice is within the minimum and maximum of the indicator window.
Why not just draw the line on the main chart?
GumRai:
Instead of
You may do better with
But if AH5 is in a separate window you need to be sure that the OrderOpenPrice is within the minimum and maximum of the indicator window.
Why not just draw the line on the main chart?
Well, my indicator filters the price in a special way, and i wanted to see the open price on my indicator chart too, i will also add SL and TP levels just the same way.
Anyway it works, thanks much!
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi i would like to draw a horizontal line on my indicator, right at the open price level of my 1 order (i only put 1 order at once).
For some reason it is not drawn, i suspect that the code cant find the separate window, so please help me correct my code fast :D