Tarea técnica
I want the programming to be very clean, and detailed in explanations in order to be easy edited, I will check the script you send, new versions coming soon.
- Tip to understand how it will work: You have 4 containers in which you can add points to one is open sell the other is open buy. The others are close all buy or close all sell.
Condition: Once you reach the minimum amount of points you set in parameters for example there are 100 point cumulated to open a 100 BUY position, and a 20 to open a SELL position, For example the value it's 70,100=100 and the requested minimum is 100, then a new trade could be opened SOON and then many trades could be closed when it reaches the closing minimum requied for example 100 points.
The expert is cumulating points from the indicators in order to open a trade.
You need to convert the EA from mt4 to mt5
The EA must work on Strategy Tester.
EDITS
0.0 I want to say before anything else, that when you see a phase like make the medium of last X semafors without last one that is moving, take the last semafor only if is older than 2 candles after a peak has been formed Example; Candle 1 High or Low, Candle 2 waiting, Candle 3 take last Semafor.
0.1 More than one trade per candle must be opened with different indicators at the same time so please remove any obstacle in the way. I want all trades to open with one strategy each, I mean respect only one parameter to all strategies but open each trade with a different strategy. Example TRENDS (Signal+Vigor+MACD+TLB) And is done. Then write on chart what strategy has been used.
OPENING STRATEGY
TRENDS=SIGNAL+VIGOR+MACD+TLB After it creates or closes a trade disable this strategy for another 3 candles.
SEMAFOR=SIGNAL+VIGOR+SEMAFOR+SCHOLASTIC+TLB After it creates or closes a trade close this strategy.
BOILINGER BANDS=VIGOR+BOILINGER BANDS+SCHOLASTIC+TLB
RAINBOW METER=SIGNAL+VIGOR+RAINBOW METER+TLB
RESSISTANCE AND SUPPORT=VIGOR+ RESSISTANCE AND SUPPORT+TLB After it creates or closes a trade disable this strategy for another 3 candles.
DELTA FORCE=SIGNAL+VIGOR+DELTA FORCE+SCHOLASTIC Delta Force strategy Ignores Moving Average line.
CLOSING STRATEGY
SEMAFOR=SIGNAL+VIGOR+SEMAFOR+SCHOLASTIC+TLB After it creates or closes a trade close this strategy.
BOILINGER BANDS=VIGOR+BOILINGER BANDS+SCHOLASTIC+TLB
RESSISTANCE AND SUPPORT=VIGOR+ RESSISTANCE AND SUPPORT+TLB After it creates or closes a trade disable this strategy for another 3 candles.
DELTA FORCE=SIGNAL+VIGOR+DELTA FORCE+SCHOLASTIC Delta Force strategy Ignores Moving Average line.
MURREY MATH=MURREY MATH+TRAILING STOP
SIMPLE TRAILING STOP=ON/OFF
0.2 Add news MT4 to expert Advisor, I want to see on the panel of the EA in this order the indices first from background, supply and demand, TLB, Semafor, Boilinger Bands, Moving Average, Tolerance line, News indicator, BBSqueeze, Trailing stop lines, one Rainbow Moving line(last slow line that give the direction), in this order.
Simple Trailing Stop line must be red, Murrey Math line yellow, Moving Average line white, Tolerance lines blue, News indicator white, TLB must have the border white, selling candle dark red, buying candle dark green.
0.3 The lots traded must be of 4 types; Fixed lot, percent lot, money management Fixed, and money management percent.
0.4 Place Signal with MAinColor but dont change the name of Signal, yellow color don"t have any use.
0.6 Add Three Line Break (TLB) to give points from candle 1 last 3 candles together example: 5+5+5=15 Points
0.7 Supply and demand need to resistance give points to sell when ressistance is broken, and when support is broken give points to buy direction, after it creates or closes a trade disable this strategy for another 3 candles.
0.8 Expert must have 2 point acumulations one for opening and another for closing trades. And each strategy for opening and closing trades should be able to be disabled in parameters after “Score Trading” Example MACD=On/Off, When BBSqueeze is purple don"t allow opening and closing trades with strategies with Murrey Math, or with Trailing Stop, only Stoploss still works...
0.9 Add the parameters of all indicators Below configuration and give me the MT5 files in order to check the expert functions
0.10 Place MACD and give the points for example to buy when both peaks of a candle go upside, or sell when both peaks go downside. I mean when sell slow+fast is below, when buy is above.
0.11 Rainbow Meter is reading the lines stacks from last 7 candles, add a parameter "Rainbow Meter counted candles". Rainbow Meter is giving points in direction of the trend. Slow lines give the direction.
0.12 You must repair Murrey Math MT5.
0.13 Place Semafor MT5 that have only 2 levels level 1 means nothing level 2 means that it give points. Semafor can be active for more than one candle for example 4 candles to give points in the direction when is above the candle is sell direction when is below is a buy direction. After it creates or closes a trade close this strategy till another Semafor level 2 is created, the value of Semafor strategy is 2 times bigger than other strategies.
0.14 After a peak was formed with Semafor add points to X number of candles, set on parameters Example: Semafor Active=4 Candles (after Semafor has been formed)
0.15 Place Boilinnger Bands(BB), plus TLB, Ressistance and Support, Delta Force, Rain Meter, MACD, Scholastic, Vigor Index.
0. 16 Transform Three Line Break (TLB), Supply and Demands, Signal, Delta Force, Rain Meter to MT5
0.17 When Boilinger Bands is oversold or overbought disable tolerance, spread and moving average for Boilinger Bands strategy.
0.18 Add deltaforce, at delta force give X points lvl1 to the direction of the candle if the last candle is bigger than median of the last 3 candles with 100% then give X points lvl2 if is bigger with 200%, give X points lvl3 if is bigger than 300%. Delta Force needs a parameter that change last counted candles without last one "Delta Force Counted Candles", Delta Force opens a trade everythime it reaches a new level if it have enought points. Delta Force strategy Ignores Moving Average line.
0.19 Add EUR/USD, GBP USD, NZD/USD, AUD/USD, USD/JPY, USD/CHF, USD/CAD, EUR/JPY, EUR/CAD, EUR/CHF, EUR/GBP, EUR/NZD, EUR/AUD, AUD/NZD, NZD/JPY, CAD/JPY, AUD/JPY, CHF/JPY, GBP/CAD, , GBP/AUD, CAD/CHF, GBPJPY, AUDCHF, GBPNZD, NZDCHF, GBPCAD, GBPNZD, All futures + All Commodities.
0.20 First modify bears and bulls and change it to show only the values high and low of the candle.
0.21 Create a panel that shows the most profitable pairs to non profitable of last 100 trades. (Pair+Profit per lot+Number of trades+Average holding time) then profit now, loss now, opened lots, account grown(24hours)+Current Drawdown+All cash flow, Risk expected, Risk now(0-20 blue, 20-30 yellow, 30 or more red, and Last Trades (Pair+Profit/loss+Lot+Holding time+Trading/Closed)
0.22. Color scholastic is oversold between 0/20, Overbought 80/100, you must add parameter in indicator configuration, when is overbought give points to sell, when oversold, give points to buy
1.0 When Murrey Math came back from a higher or lower line, the close that transaction if mm have at least 150 points in profit direction (add to parameters MM Activates.) And also add a parameter (Mm percent, which is where it goes like a trailing stop the minimum points needed to close for example you have 300 pips from the bottom to the top of last 2 peaks of semafor level 2 without last one that is moving up and down then, take a percentage of 80% and make a trailing stop of 20%. And you also need to respect a condition that says you need at least one blue candle when selling and a red candle is when buying (candle of TLB). I want the trailing stop to be visible on chart with yellow color.
2. Tolerance point to peaks. Will allow to open only transactions that are in tolerance zone set in parameters. The tolerance zone need to work side to side with moving average, and when moving average is not in tolerance zone it adjust automatically. The tolerance points is chosen by taking the length of the distance between last 1 high vs low of Semafor level 2, 1 must be added to parameters, without the last one that is movinf up and down and is calculated in percent. Attention semafor need opposite poles not one side poles. If tolerance is down on semafor open only buys, if semafor is up open only sells on tolerance zone. Note: when you are in the buy zone only at closing trades, don't close trades that are bought. Tolerance applies to opening and closing transactions. Tolerance is created min after lvl2 is seen. Attention in a tolerance zone cancel to create another and a tolerance zone expires after another is created. Tolerance zone starts from semafor till the point where tolerance was created plus number set on parameters example 20% bigger tolerance. The direction of buy or sell of tolerance must be given by semafor, when semafor is above tolerance open "tolerance sell" when is below open "tolerance buy".
3. Costum spread that will allow to open only transactions have smallest spreads reading the last 10 seconds of the spreads and waiting for lowest spread to open a trade.
4. Moving Average has the role to delay opening trades until buy goes below the moving average line or sell goes above the line.
5. Create a simple Stoploss will activate to the highest and lowest point of near peak. Note: stop-loss has one direction in loss and can be disabled in parameters. Last readed peak can be max 30 candles old and max 10% pips in negative from difference of high and low of last 2 semafors level 2 without last one that is moving up and down, both must be added to parameters.
6. Maximum drawdown is set by default to 30% after that value the EA doesn't open any trades and the only part still operating is closing current trades.
7. Detect long candles make the medium of the last 4 candles and if last candle is bigger with 400% then cancel the transaction that comes back from a higher line when buying or a lower line when selling of murrey Math. Last candles must be added to parameters “MM Long Candle”
9. Cancel trades on Friday, it stops opening trades with 6 hours before market closes, close all trades Friday night.
10. Add to chart stop-loss, tolerance 1 + 2, spread 1 + 2, moving average line, trailing stop line, simple trailing stop line, plus murrey Math indice and transaction(opening + close point). When it adds or closes a trade Add 3 butons One OK, one canceling the pending order and one to switch for that chart. The the pending order waits 2 minutes, to close or to open, this is a condition. I want to see time remaining on chart. After time expires it opens automaticaly one trade.
11. When MACD slow + fast goes with the trend direction double next transaction value, same is with color scholastic when is overbought or oversold. If they are active in parameters and in the good direction, It uses money management score.
12. Signals to smartphone, signal when drawdown is near with 5% difference. Signal when the EA detects a long candle ( long candle pair+high+low of the last candle, and signal every X hours with balance, positive trades, negative trades profit %, opened trades, and total lots. Make a sound when it opens or closes a trade. Signals when account risk is 30 or more(show every 1 hour)
13. When MACD is active in buy or sell with trend slow + fast MACD show the same direction use tolerance 2 and spread 2 instead of tolerance and spread 1.
14. money management that will have the role to select the most volatile pairs, in parameters will be written how many hours to scan for example 100 candles, we need the highest level and the lowest level of the last 100 candles, then will extract the difference between the two numbers high and low, then will (X) with every time a Semafor has been saw, the resulted number will represent the pair. Make a percentage between pairs and extract the difference.
Money management part 2 ,parameters go below "money management configuration" , Money Management changes the value of a trade by points acumulated. Futures and Commodities are excluded from money management it uses lot fixed, lot percentual instead of money management. Money management are 4 types fixed lot, percentual lot, MM Fixed, MM Percentual, all uses signal 1 to 5
Pair Cash Flow= (High - Low X (Semafor has been saw : 3 )) : All Cash Flow , 3 must be added to parameters to change the Money management risk and in last 100 candles if Money Management Parameter is 100.
All Cash Flow= X + Y + Z ... 27 Pairs ( add to the hud ) Ignore futures and commudities.
Money Management Fixed = Pair Cash Flow X Fixed
Money Management Percentual = Pair Cash Flow X Percentual
Example 1; If you have 100 points + 15 TLB give more value with 15% to a trade if parameters "Signal 1" = 100(count every 1% after 100 parameter)
Example 2;Use bear and bulls indicators for and 15m 30m 4h 1d 1 week take the difference in percent between them. 50% difference = 5% More trade value for trade that goes in that direction. Disable this Signal for Delta Force Strategy.
Example 3; Use color scholastic for 15m 30m 4h 1d 1week and when oversold or overbought add "signal 3" = 10%, when oversold add 10% to buy, when overbought add 10% to sell.
Example 4; Use the dashboard and add removepoints for every timeframe use "signal 4" parameter for every value.
Example 5; Use Boilinger Bands for 15m 30m 4h 1d 1week and when oversold or overbought add "signal 3" = 10%, when oversold add 10% to buy, when overbought add 10% to sell.
16. Risk Now and Risk Expected, when it becomes high(30 or more) it needs to be written on panel that “Risk is too high, decrease lot rates below 30” Risk text must stay one second then disapear one second, then popup again one second. Risk colors are blue 0-20, yellow 20-30, red 30 or more, when a future or commodity does not exists on broker it should not count as a active pair because it modifies risk result. Risk take last 4 Semafors if “Risk Counted Semafors” is 4. Risk ignores last Semafor that is moving up and down.
((Total High - Low last 4 Semafors : 4) + . . . + Pairs) : Total Number of Active Pairs= Medium High - Low
((((Total High - Low X Stoploss / 100) X Number or Pairs) X Value of a Pip) X Account Risk Parameter) X 1,3 = Expected Risk Result
(((Total High - Low X Stoploss / 100) X Total Value of a Pip in Opened Trades) X Account Risk Parameter) X 1,3 = Now Risk Result
MAIN PARAMETERS
Lot Type= Money Management Fixed,Money Management Percentual, Fixed, Percentual
Lots Traded =1
Drawdown Max in %=30
Timelapse =15 min ( From 1min to 1 week)
Max spread in %=30%
Max spread2 in %=20% When goes along with MACD
Tolerance in %=20%
Tolerance2 in %=30% When goes along with MACD
Stoploss=On,Off
Stoploss Max Old=30 Candles
Stoploss Max Negative in %=10%
Color Scholastic2x=On, Off
Color Scholastic2x Timeframes=15 min, 4 hours
MACD 2x= On, Off
MACD 2x Timeframes=15 min, 4 hours
Simple Trailing Stop in %=30%
Signals to smartphone=24 Hours
Money management=100 Candles
Money Management Risk=3
Account Risk=1.0
Close trades on Friday= On, Off
Trade history =300 I will tell you later what those mean(Job 2)
Last trades history=70 I will tell you later what those mean(Job 2)
Score trading
Min Points Open= 100
Min Points Close=100
OPENING STRATEGY
TRENDS=On/OFF
SEMAFOR= On/OFF
BOILINGER BANDS= On/OFF
RAINBOW METER= On/OFF
RESSISTANCE AND SUPPORT= On/OFF
DELTA FORCE= On/OFF
CLOSING STRATEGY
SEMAFOR= On/OFF
BOILINGER BANDS= On/OFF
RESSISTANCE AND SUPPORT= On/OFF
DELTA FORCE= On/OFF
MURREY MATH= On/OFF
SIMPLE TRAILING STOP=ON/OFF Simple Trailing Stop in percent like the one Murrey Math has with reading last 2 Semafors level 2 without last one that is not formed a peak.
Advanced Parameters
Delta Force Counted Candles=4 in backward
Murrey Math Activates=150 Activates after X pips
Rainbow Meter counted candles=7 backward
MM Long Candle=4 you need to count for long candle
Risk Counted Semafors=4
Semafor Active=4 (Candles)
Tolerance, Spread Last counted candles=1
Opening Trades.
Tbl=5,
Boilinger Bands =60,
Rainbow Moving =3,5
Color Sholastic =10,
MACD =45,
Supply and demand =60,
Semafor =50lv2 0lv1,
Signal =10,
Vigor =30
Deltaforce =lvl1 50 , lvl 60, lvl 70
Closing Trades.
Tbl=10,
Boilinger Bands =85,
Rainbow Moving =00,
Color Sholastic =10,
Macd =0,
Supply and demand =70,
Semafor =lvl2 40 0lv1,
Signal =20,
Vigor=10
Deltaforce =lvl1 60 , lvl 80, lvl 80
Money Management configuration.
-/-
Money Signals 1 to 5
Signal 1 Points = 100
Signal 2 Bear and Bulls in %= 5 %
Signal 3 Sholastic in % = 10 %
Signal 4 = Dashboard
Signal 5 Boilinger Bands in %= 10%
Configuration (Add all parameters of indicators.)
-/-
Scholastic Overbought=80 (80 to 100)
Scholastic Oversold=20 (0 to 20)
Pairs
27 Pairs, All Futures, All Commodities