Download MetaTrader 5

EA: Miscellaneous Questions - Trading Strategy

To add comments, please log in or register
Max Enrik
945
Max Enrik  

#Article and Forum for Beginner & About Trading Strategy - Open

H‌ello,

‌‌I already found few articles that I will read all of them before I start to write code for my first Trading Strategy EA's.‌‌
But I think if someone ( professional coder or programmer ) will share some links about Trading Strategy like a Article or Forums with me, really that would be better for me.

T‌hanks a lot in advance.

(‌ English is not my native language )

Marco vd Heijden
Moderator
4821
Marco vd Heijden  

There are a lot of strategy's.

Max Enrik
945
Max Enrik  
Marco vd Heijden:

There are a lot of strategy's.

( I took break for this Topic )
Yes, of course you are right. But I meant which one would be better for me ( for beginner which is starting to write code for own first EA strategy's ).

Max Enrik
945
Max Enrik  

I already read some articles some forums and still reading some articles about EA Strategies. ( they helped me a lot )
Now I want to ask something about Automated EA Trading Strategy which is that questions are important for me.

Q:  Is it possible that I can test my EA Trading Strategy from 2010? ( timeframe M5 )

Thanks in advance.

Marco vd Heijden
Moderator
4821
Marco vd Heijden  
If you have access to the historic data... but it will never reflect real market feed unless you replay tick by tick which is not a standard feature.
Max Enrik
945
Max Enrik  
Marco vd Heijden:
If you have access to the historic data... but it will never reflect real market feed unless you replay tick by tick which is not a standard feature.
I got it, Thanks for your comment.
Max Enrik
945
Max Enrik  
EA strategy does not attach indicator to the Chart, but I want to attach it on Chart. What could I do for it, please?
Marco vd Heijden
Moderator
4821
Marco vd Heijden  
Use
ChartIndicatorAdd()

(MQL5)


Or hardcode the indicators formula into the EA

Max Enrik
945
Max Enrik  
Marco vd Heijden:
Use

(MQL5)

Or hardcode the indicators formula into the EA


Oh! It will be a little hard then. Let me think about it.
Thanks for your comment.
Max Enrik
945
Max Enrik  

I can easily counting orders total, but I need to count only orders of chart symbol, is it possible please?

total = OrdersTotal();
Print( "OrdersTotal: ", total );

Thanks in advance.

Marco vd Heijden
Moderator
4821
Marco vd Heijden  

Yes in an orderselect loop use the filter:

if OrderSymbol()==Symbol() //if ordersymbol matches chart symbol
 {
  orders++; // +1 for chart symbol orders
 }
And dont forget to reset it to 0 when you run another check else it will double.
123
To add comments, please log in or register