How to teach an EA not to trade in certail circumstances? - page 2

 
RaptorUK:

First define what you consider to be a trend,  write it down in such detail that you can code it.  Create a function, bool IsTrend() and code it with the information in your trend definition so that if there is a trend it returns true,  otherwise it returns false.

Then in your code when you are about to place a trade first call IsTrend(),  if it returns true place the trade,  if not return . . . 

thank you sir.
 
angevoyageur:
Do you see that ! Programming is so easy
yes your best wishes and advices with my efforts to learn make it so!! i hope and pray for that :)
 
drbmgojanur:
yes your best wishes and advices with my efforts to learn make it so!! i hope and pray for that :)
Hope and pray doesn't help. Only learning, experimenting and working.
 
angevoyageur:
Hope and pray doesn't help. Only learning, experimenting and working.

OK Only learning, experimenting and working. thanks a lot. i will.

yes your best wishes and advices with my efforts to learn make it so!!

Reason: