You are on page 1of 6

Manual zulufx EA for MT4 platforms.

1. You can trade all pairs without news filter.


2. with news filter you can trade (xx).
3. you can trade any timeframe/chart (settings has to be adjusted compared to
trend,zones etc.).

Firstlot = lotsize of first trade, always if maxtrades= 1.


Secondlot = lotsize of second trade.
Restlot = rest of trades if maxtrades= more than 2.
TP = take profit, 0 for disable.
SL = stop loss, 0 for disable.
TrailingDistance = trailing SL-TP, 0 for disable, 0 for disable.
SpreadFilter = maximum spread for trading, 0 for disable.
Xbar = number of bars/candles (using zulufx template) deciding trend on higher
timeframe (trendtf), 0 for disable.
ArrowTrade = use arrow trade on first trade or not.
CloseOnOpposite = close trade on opposite arrow of trade.
UseOldLogicWithArrows = simply use all the trading logic or not.
XbarChart = number of bars/candles (using zulufx template) on current chart getting
bigger and bigger or smaller to allow a trade.
CandlesTrade = plain number of bars/candles (using zulufx template) to allow a
trade, has to be same as XbarChart unless XbarChart=0, disabled.
TrendTf = pick higher chart to determine trend on current tradded chart.
UseTrendTf = use trendtf or not.
FirstTrade = time in min. to make first trade, timer goes in cycles , 0 for
disable.
WaitTrade = time from start of EA to make 2nd or 3rd trade etc.. timer goes in
cycles (not time from end of first trade to next trade), 0 for disable.
MaxTrades = number of allowed ongoing trades at the same time.
TradeCount = total number of trades before EA stops trading, 0 for disable.
TrendRule = depending on (trendtf) follow trend or opposite, buy or sell.
TypeOfZone = trade inside or outside zone only.
ZonePercent = number to determine zone size, 0 for disable.
ZoneTf = chose chart to define zone on traded chart.
BarsForExtremes = number to determine bar for extreme on chart, 0 for disable.
DailyOpenOn = if true only go long above dailyopen and short below daily open.

Trading rules for trading filters:

Old trading logic, follow unless disabled:


Firstlot = lotsize of first trade, always if ongoing trades= 1.
Secondlot = lotsize of second trade.
Restlot = rest of trades if ongoing trades= more than 2.
TP = take profit, 0 for disable.
SL = stop loss, 0 for disable.
TrailingDistance = trailing SL-TP, 0 for disable, 0 for disable.
SpreadFilter = maximum spread for trading, 0 for disable.
Xbar = number of bars/candles (using zulufx template) deciding trend on higher
timeframe (trendtf), 0 for disable.
XbarChart = number of bars/candles (using zulufx template) on current chart getting
bigger and bigger or smaller to allow a trade.
CandlesTrade = plain number of bars/candles (using zulufx template) to allow a
trade, has to be same as XbarChart unless XbarChart=0, disabled.
TrendTf = pick higher chart to determine trend on current tradded chart.
UseTrendTf = use trendtf or not.
FirstTrade = time in min. to make first trade, timer goes in cycles , 0 for
disable.
WaitTrade = time from start of EA to make 2nd or 3rd trade etc.. timer goes in
cycles, 0 for disable.
MaxTrades = number of allowed ongoing trades.
TradeCount = total number of trades before EA stops trading, 0 for disable.
TrendRule = buy or sell depending on (trendtf) follow trend or opposite.
TypeOfZone = trade inside or out side zone only.
ZonePercent = number to determine zone size, 0 for disable.
ZoneTf = chart to define zone on traded chart.
BarsForExtremes = number to determine bar for extreme on chart, 0 for disable.
DailyOpenOn = if true only go long above dailyopen and short below daily open.

Arrow trading filter, follow unless disabled:


Firstlot = lotsize of first trade, always if ongoing trades= 1.
TP = take profit, 0 for disable.
SL = stop loss, 0 for disable.
TrailingDistance = trailing SL-TP, 0 for disable, 0 for disable.
SpreadFilter = maximum spread for trading, 0 for disable.
Xbar = number of bars/candles (using zulufx template) deciding trend on higher
timeframe (trendtf), 0 for disable.
ArrowTrade = use arrow trade on first trade or not.
CloseOnOpposite = close trade on opposite arrow of trade.
UseOldLogicWithArrows = simply use all the trading logic or not.
XbarChart = number of bars/candles (using zulufx template) on current chart getting
bigger and bigger or smaller to allow a trade.
CandlesTrade = plain number of bars/candles (using zulufx template) to allow a
trade, has to be same as XbarChart unless XbarChart=0, disabled.
TrendTf = pick higher chart to determine trend on current tradded chart.
UseTrendTf = use trendtf or not.
FirstTrade = time in min. to make first trade, timer goes in cycles , 0 for
disable.
WaitTrade = time from start of EA to make 2nd or 3rd trade etc.. timer goes in
cycles, 0 for disable.
MaxTrades = number of allowed ongoing trades.
TradeCount = total number of trades before EA stops trading, 0 for disable.
TrendRule = buy or sell depending on (trendtf) follow trend or opposite.
TypeOfZone = trade inside or out side zone only.
ZonePercent = number to determine zone size, 0 for disable.
ZoneTf = chart to define zone on traded chart.
BarsForExtremes = number to determine bar for extreme on chart, 0 for disable.
DailyOpenOn = if true only go long above dailyopen and short below daily open.

Trading rules on newsevent filter, follow unless disabled:

How to handle Maxtrades = x and trendtf and SL,TP,trailingdistance on newsevent


trades:

we disable normal SL,TP,trailing distance for newsevent trades and add new ones.
Settings:
1.News SL = x (0 = disabled)
2.News TP = x (0 = disabled)
3.News trailingDistance = x (0 = disabled)

We bypass Maxtrades=x and make other filters for news trades.


Settings:
1.Maxnewstrades = x (how many ongoing news trades EA allows) same as old Maxtrades
= x just a new filter for news trades only.
2.TradeCount = x (should include newsevent trades in old logic tradecount).
We add 2 new settings for trendtf.
Settings:
1.Use trendtf medium newsevent = true or false
2.Use trendtf high newsevent = true or false

Else we follow old logic:


input double FirstLot=0.1;
input double SecondLot=0.2;
input double RestLot=0.3;
input int SpreadFilter=10;
input int Xbar=5;
input bool ArrowTrade=true;
input bool CloseOnOpposite=true;
input bool UseOldLogicWithArrows=true;
input int XbarChart=3;//Xbar on current chart
input int CandlesTrade=2;
input tf TrendTf=M30;
input int FirstTrade=2;
input int WaitTrade=3;
input int TradeCount=10;
input rule TrendRule=FollowTrend;
input ZN TypeOfZone=InsideZone;
input double ZonePercent=50;
input tf ZoneTf=W1;
input int BarsForExtremes=100;
input bool DailyOpenOn=true;

Trading rules on newsevents:

Newsevent trades follow old logic except Maxtrades= x and trendtf as described
above.
Settings:
Trading on high news = true or false.
Trading on medium news = true or false.
Forcast newsevent positive> = x (and higher) if lower no trading.
Forcast newsevent negative< = x (and lower) if higher no trading.
Trade before newsevent min. = x (how many min. EA are able to make a trade before
news event) following old logic it can take a while.
Open newsevent trade window min. = x (how many min. EA are able to start a trade on
specific news) following old logic it can take a while.

Rules:
1.if we have a inpact medium or high news event on a currency we trade like JPYUSD,
only JPY and USD newsevents are interesting on that chart and EA should only be
trading on those 2 newsevents.
2.newsevent on JPY when trading JPYUSD EA looks at forcast at JPY newsevent,if
forcast is +(positive by =>x or higher, 0 = disabled) we (long-JPY) trade = x
min.before newsevent following EA logic(except maxtrades=x and trndtf) with a open
trade window = x min, to make sure EA makes a trade on newsevent.
3.newsevent on JPY when trading JPYUSD EA looks at forcast at USD newsevent, if
forcast is -(negative by =<x or lower, 0 = disabled) we (short-JPY) trade = x
min.before newsevent following EA logic(except maxtrades=x and trndtf) with a open
trade window = x min, to make sure EA makes a trade on newsevent.
4.newsevent on USD when trading JPYUSD EA looks at forcast at JPY newsevent,if
forcast is +(positive by =>x or higher, 0 = disabled) we (short-JPY) trade = x
min.before newsevent following EA logic(except maxtrades=x and trndtf) with a open
trade window = x min, to make sure EA makes a trade on newsevent.
5.newsevent on USD when trading JPYUSD EA looks at forcast at USD newsevent, if
forcast is -(negative by =<x or lower, 0 = disabled) we (long-JPY) trade = x
min.before newsevent following EA logic(except maxtrades=x and trndtf) with a open
trade window = x min, to make sure EA makes a trade on newsevent.

No trading on newsevents, close trade rules:


Settings:
Close trades on newsevent min. = x (how many min. we close trade before newsevent).

Rules:
1.if we have a inpact medium or high news event on a currency we trade like JPYUSD,
only JPY and USD newsevents are interesting on that chart and EA should only be
closing on those 2 newsevents.
2.newsevent on JPY when having a ongoing trade (long-JPY) on JPYUSD, if forcast is
-(negative by =<x or lower, 0 = disabled) close trade.
3.newsevent on JPY when having a ongoing trade (short-JPY) on JPYUSD,if forcast is
+(positive by =>x or higher, 0 = disabled) close trade.
4.newsevent on USD when having a ongoing trade (long-JPY) on JPYUSD,if forcast is +
(positive by =>x or higher, 0 = disabled) close trade.
5.newsevent on USD when having a ongoing trade (short-JPY) on JPYUSD, if forcast is
-(negative by =<x or lower, 0 = disabled) close trade.

Settings:
Use news indi = true or false (usefull to be able to to use indi if testing in
sim.).

Trading rules HHLHLLHL:


Follow old trading logic if not disabled:
How to handle Maxtrades = x and trendtf and SL,TP,trailingdistance on HHLL trades:

we disable normal SL,TP,trailing distance for newsevent trades and add new ones.
Settings:
1.HHLL SL = x (0 = disabled).
2.HHLL TP = x (0 = disabled).
3.HHLL trailingDistance = x (0 = disabled).
4.HHLL trading = true or false (enable or disable HHLL trading in EA).

We bypass Maxtrades=x and make other filters for HHLL trades.


Settings:
1.MaxHHLLtrades = x (how many ongoing HHLL trades EA allows) same as old Maxtrades
= x just a new filter for HHLL trades only.
2.TradeCount = x (should include HHLL trades in old logic tradecount).

We add new setting for trendtf.


Settings:
1.Use trendtf HHLL = true or false

Else we follow old logic:


input double FirstLot=0.1;
input double SecondLot=0.2;
input double RestLot=0.3;
input int SpreadFilter=10;
input int Xbar=5;
input bool ArrowTrade=true;
input bool CloseOnOpposite=true;
input bool UseOldLogicWithArrows=true;
input int XbarChart=3;//Xbar on current chart
input int CandlesTrade=2;
input tf TrendTf=M30;
input int FirstTrade=2;
input int WaitTrade=3;
input int TradeCount=10;
input rule TrendRule=FollowTrend;
input ZN TypeOfZone=InsideZone;
input double ZonePercent=50;
input tf ZoneTf=W1;
input int BarsForExtremes=100;
input bool DailyOpenOn=true;

We are using the zulufx HHLHLLHL indicator when trading HHLHLLHL and the DailyOpen
indi.

1.Add zulufx HHLHLLHL and DailyOpen Indi to EA.

1.Alle settings i would like displayed in left lower corner of chart.

Add DailyOpen settings:


Settings:
DailyOpen = true or false.

Trading counters:
Settings:
1.Ongoing trades = number of trades EA can have running at the same time.
2.Maxtrade = total number of trades before EA stops trading.
3.Time to first trade = x min. to first trade if rules are right.
4.Time in betwen ongoing trades = time in between trades if more than 1 ongoing
trade.

SL,TP,trailing distance:
Settings:
1.SL = x (0 = disabled).
2.TP = x (0 = disabled).
3.trailingDistance all = x (0 = disabled).
4.trailingDistance half = start at X after closing half.

Trading rules HHLHLLHL:


Higher High = HH
Lower High = LH
Lower Low = LL
Higher Low = HL

Look at zulufx HHLHLLHL indicator.

explanation of HHLHLLHL:
Maybe Lower High or Higher High = when (LH) and price go down to (HL or LL) and
price go up its next is gonna be a Lower High or a Higher High (LH or HH).
Lower High = when (LH or HH) and price go down to (HL or LL) and price goes up and
and start tuning around before last (LH or HH) next is a Lower High (LH).
Maybe Higher Low or Lower Low = when (HL or LL) and price gos up to (LH or HH) and
price goes down next is gonna be a Higher Low or a Lower Low (HL or LL).
Higher Low = when (HL or LL) and price gos up to (LH or HH) and price go down and
start tuning around before last (HL or LL) next is a Higher Low (HL).

Trading Long:
(XXXX) = 1. choise or 2nd choise etc...
Start trade Long = (Above DailyOpen) or (1st.LL When above DailyOpen) or (1st.LL if
DailyOpen is false).
Close half = (TP after start of trade) or (half of last position in chart betwen HH
or LL or LL or HH in pips).
Close rest = (1st.LH after start of trade) or (1st.HH after start of trade) or
(2nd.LH after start of trade) or (2nd.HH after start of trade) or (TP SL TDA TDH).

Trading short:
(XXXX) = 1. choise or 2nd choise etc...
Start trade Short = (below DailyOpen) or (1st.HH When below DailyOpen) or (1st.HH
if DailyOpen is false).
Close half = (TP after start of trade) or (half of last position on chart betwen LL
or HH and HH or LL in pips).
Close rest = (1st.HL after start of trade) (1st.LL after start of trade) or (2nd.HL
after start of trade) or (2nd.LL after start of trade) or (TP SL TDA TDH after
start of trade).

Rest of indicator settings i will not describe in manual, not recommended to


edit/change.

You might also like