Choosing diferent options in an EA

Post Reply
alphakenny1
Posts: 4
Joined: Mon Jul 30, 2012 4:31 pm

Choosing diferent options in an EA

Post by alphakenny1 »

hello

just thought i'd ask the professionals on how they would do it

i am in the process of writing an EA, and i want several TP and SL settings.
how do i arrange it?? in my head it would be:

if method 1 = true method 2,3... = false using a bool function, and the methods separated by the void function.
example: method 1 (TP = 10)

Method 2: (move stoploss to BE +1, then trail 10, TP = 100)

method 3: (TP at Pivot, fibo, whatever line or indi )

then have the methods user defined in extern parameters.

or am i making no sense and should read the MQL4 book again.
Post Reply

Return to “Coders Hangout”