FxTrader_: y, but i'm unable to add spread to it.
| Why can't you? Where do you add it? |
Hi WHRoeder
Sorry for that, I would like to add it to the high and plot the line (High + spread),
ObjectCreate("highLineD1",OBJ_HLINE,0,0,PriceHigh+Ask-Bid);
you will need to reset the price level as the price changes
ObjectCreate ("highLineD1", OBJ_LABEL, OBJ_PERIOD_D1, Time[0], OBJ_PERIOD_D1);
You cannot create a label with the same name as the line. None of the highlighted parameters are correct
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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'm trying to plot horizontal line in the highest price in daily time frame, the line will consist of two things " highest price + Spread"
The line it is drawn nicely, but i'm unable to add spread to it.
Alse I would like to have the line "name" above the line (ex: DLine) "This is not necessarily", But it you can...
any help will be highly appreciated