MetaTrader4
Fibo Pivot MultiVal EA: Your New Trading Companion for MetaTrader 4
Meet the Author:
Dael
Forum Discussion:
Join the conversation here!
Code Developer:
olyakish
With the technical requirements laid out on the forum and the original author commissioning the code, I feel there’s no issue sharing my version of this Expert Advisor (EA).
Overview of the EA:
This EA operates on multiple currency pairs during the quieter Asian session, capitalizing on Fibo Pivot levels for small, consistent profits without risking losses. Once it accumulates a specific number of pips across all pairs, it automatically closes out trades for the day.
Think of this EA as a versatile tool—it's designed to handle as many currency pairs as you want. In my setup, I’ve included ten pairs.
Tips for Optimal Use:
Deploy the EA on days when a range-bound market is anticipated.
Attach it to the currency pair with the highest tick volume during the Asian session.
Choose pairs that come with tighter spreads for better execution.
Key Variables:
extern int CountSymbol=10; Total number of currencies to trade
extern string AllVal="EURUSD,GBPUSD,USDCHF,USDJPY,USDCAD,AUDUSD,AUDJPY,CADJPY,EURJPY,EURCHF"; Designated currency pairs
extern string All_Level_P_F1="33,33,33,33,33,33,33,33,33,33"; Line percentage based on the indicator (as noted in the forum)
extern string All_Level_F1_F2="50,50,50,50,50,50,50,50,50,50"; Line percentage as per the indicator
extern string All_Level_F2_F3="33,33,33,33,33,33,33,33,33,33"; Line percentage according to the indicator
extern string All_Level_F3_out="40,40,40,40,40,40,40,40,40,40"; Again, line percentage based on the indicator
extern string rem01="Number of profitable trades before pausing on this currency pair";extern string All_ExpertTrades="15,15,15,15,15,15,15,15,15,15"; Trade limit for each pair; trading stops on that pair for the day after reaching this
extern string rem02="Minimum profit in !points!";extern string All_ExpertProfit1="150,150,150,150,150,150,150,150,150,150"; Profit threshold for each pair to stop trading for the day
extern int AllValProfit=50; Total target profit to cease trading for the day
extern int AllValProfitTrades=35; Total wins for the current trading day
extern string rem03="If b then buy, allow - sell";extern string rem04="If s then sell, allow - buy";extern string rem05="If bs then buy/sell allowed";extern string All_F2_F3_Order="bs,bs,bs,bs,bs,bs,bs,bs,bs,bs"; Based on technical requirements
extern int MagicStart=1000; Initial Magic Number
extern int GlobalPeriod=15; Global period for all pairs (make sure to have this period open in the client terminal)
extern string HourMinStart="00:07"; Start time for the EA (terminal time)
extern string HourMinFinish="08:00"; End time for placing pending orders
extern string HourMinCloseAll="22:00"; Time to forcibly close all trades (even losing ones)
extern bool DrawLine=true; Note: This variable is currently not used in the EA code due to line drawing issues with reference indicators in other windows.
P.S. The commercial version of this EA (not my code) seems to be quite bloated compared to this one, focusing solely on trading one currency pair.
2008.05.06