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
How can I add that backtesting connect line to my EA?
Draw a TrendLine between the open datetime and price and the close datetime and price
Yep, I kinda know what to do. Set the Ray property to false, assign some variables for those you mention,
then ObjectCreate() to draw it. I have the psuedo-code concept. So, I just wonder, since it is done in the backtest,
is there a function or an example of "how" it is done? The simple elegant solution?
label name trendline can be something like "trend"+doubletostr(orderticket())
x1 orderopentime
x2 orderclosetime
y1 orderopenprice
y2 ordercloseprice
style 0 = solid
width 0 = thin
Something like this you mean ??
Yep, I kinda know what to do. Set the Ray property to false, assign some variables for those you mention,
then ObjectCreate() to draw it. I have the psuedo-code concept. So, I just wonder, since it is done in the backtest,
is there a function or an example of "how" it is done? The simple elegant solution?
Oh, well, for me, coding has always been more simple, the second time. :)
I was wondering if there was a custom function like ConnectOpenClose() or something that, the backtester uses, that's all.
And I was trying it and keep messing up my global vs local variables. Very new to mql4, but not Java in an IDE, for example.
It is simple object concept and more simple now. Thanks. I appreciate the time you took.
I'm still looking for a simple de-bugger. Any ideas?
I'm still looking for a simple de-bugger. Any ideas?