faustf:
hi guys i have creted a diagonal line but this line must pass in iterception of ass X and Ass y like fugure
now i trace it with tool but i want the daw line directly by my code i sue this code
but with my code not draw nothing anyone can help me ?thanksTry setting timeArray as a series (a time series) with ArraySetAsSeries().
MQL5 Book: Creating application programs / Timeseries / Overview of Copy functions for obtaining arrays of quotes
- www.mql5.com
The MQL5 API contains several functions for reading quote timeseries into arrays. Their names are given in the following table. All functions take...
faustf:
… my code not draw nothing
ChartRedraw function calls a forced redrawing of a specified chart. Usually it is used after changing the object properties.
int OnInit() { //… ChartRedraw(); return(INIT_SUCCEEDED); }
Replaced the previous approach with iTime() for simplicity.
//datetime timeLeftTop = timeArray[1]; // Tempo della prima barra (angolo sinistro alto) datetime timeLeftTop = iTime(Symbol(),Period(),1);
To delete the "LineZ" object.
void OnDeinit(const int reason) { //… ObjectDelete(0, "LineZ"); }
Also replace those trend lines and labels with OBJ_ARROW_RIGHT_PRICE.
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 guys i have creted a diagonal line but this line must pass in iterception of ass X and Ass y like fugure
now i trace it with tool but i want the daw line directly by my code i sue this code
but with my code not draw nothing anyone can help me ?thanks