if(ObjectFind(0,"My_Line")==0 && counter_up<signals)What is signals?
And why this logic
double Price= ObjectGetDouble(0,"My_Line",OBJPROP_PRICE); if(tick.ask>=NormalizeDouble(Price,Digits()) && Price > 0)
All prices on the chart are Bid.
An object's price will be Bid.
You are comparing the price to Ask, not Bid.
- An HLine only has one endpoint, a TLine has two. Don't you want to compare the market to the current value of the line instead of one of its endpoint?
ObjectGetValueByTime - You are comparing if the market is above the object. That isn't a touch if you're coming from above. Touch would be bar high and low iare between the line.
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 am trying to setup alerts on a line exactly when price touches the line, using bid and ask as per code below giving wrong alert and alerting before the line touches
i want to get alerted when price equals the line, Any help is highly appreciated
here is my code