Turning 3 line break indicator into EA

 

Hello,

I am using 3 line break method as one of the confirmers for my trades. I have found an indicator in the codebase section (link: https://www.mql5.com/en/code/9849) but struggle to understand how to turn it into and EA.


I mean I have copied the code into a new EA document, and even entered OrderSend() function in multiple places to see where the execution of EA would happen but no results....


Did anybody try to do it before? There are no examples on the forum section so i am wondering if that is possible to be made.

 
use iCustom()
 
qjol:
use iCustom()

ok, that is a new thing for me ;-) thanks I will be testing it then....


but still few questions:


[1] how to read the code to understand in which place to put OrderSend*()

[2] with icustom() - will it work with 10min charts that i make in MT4

 
  1. learn The indicator's code is irrelevant. You need to code the EA. You decide when to open orders.
  2. Don't specify a chart in the iCustom call: iCustom(NULL,0, ...
 
WHRoeder:
  1. learn The indicator's code is irrelevant. You need to code the EA. You decide when to open orders.
  2. Don't specify a chart in the iCustom call: iCustom(NULL,0, ...

Actually, using iCustom for this would be a huge waste of resources and un-necessary buffers. He'd be better off coding the algorithm in an EA, far less wasteful and would backtest much faster.
Reason: