Hello,
actually iam coding some arrow indicator where i want the arrows to disappear live when conditions are not met and re-appear when conditions are met (on the current candle)
i have tried creating a function DeleteArrow() but something is wrong , if anybody can post some example code would be very good thanks
does the following right with you????
//+------------------------------------------------------------------+ //| Expert deinitialization function | //+------------------------------------------------------------------+ void OnDeinit(const int reason) { ObjectsDeleteAll(); Comment(""); }
does the following right with you????
Then you write the exact same but opposite logic with the activity that removes the arrow.
It could be the case that it then starts to continuously remove none existent arrows, so you have it scan for an arrow first and if it exist, remove it..
Also you can set all variables to zero, then the object exists, but will not be visible, and when you need it, assign the correct values so it shows up where you need it, and if it needs to go reset it to zero again.
Many solutions as you see.
Then you write the exact same but opposite logic with the activity that removes the arrow.
It could be the case that it then starts to continuously remove none existent arrows, so you have it scan for an arrow first and if it exist, remove it..
Also you can set all variables to zero, then the object exists, but will not be visible, and when you need it, assign the correct values so it shows up where you need it, and if it needs to go reset it to zero again.
Many solutions as you see.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hello,
actually iam coding some arrow indicator where i want the arrows to disappear live when conditions are not met and re-appear when conditions are met (on the current candle)
i have tried creating a function DeleteArrow() but something is wrong , if anybody can post some example code would be very good thanks