指定
give true false option to use pending orders or market orders. (Below i describe how the ea works with pending orders.)
The ea places a pending buy and a pending sell X pips apart, same size, at start lot size.
inputs for SL and TP and order gap.
start lot is percent of current balance. 1% = 1 lot
the ea places the orders based on news (high news level, on all the majors, gets data from web site) and based on 9 indicators (so 10 indicators total). We have true/false option for each, whether to use or not. Also need percent indicators to trade, if set to 100% then all 10 indicators need to show to trade. if set to 10% then only one need to show to trade. PercentIndicators looks at those that i select to use as true.
Need true False option to trade on news AND percent of the 9 indicators.
if the pending buy is filled the pending sell is deleted and replaces bigger in order to recoup the loss from the buy and get to TP. If The buy is SL, then the pending buy is replaced with bigger lot size to recoup the loss and get TP. And so on until it reaches TP, then waits for the signal before trading again. Provide option True/False not to delete the opposite and replace with bigger, but instead to just add incremental lots to the opposite. (DeleteReplaceOpposite = False)
loss modifier: after A number losses (LossCount) the lot that will be used next is modified e.g. -50% (PercentModify). I need 10 inputs for these (2 inputs each, see below for layout) and if for e.g. I use -50% for the last input if losses will continue after that, the ea will continue to apply -50% to all the lot sizes after that. To be clear, the ea tries to recoup the loss after each SL. if loss modifier is selected and the loss count is reached, then the percent reduction is applied to the lot. if it loses again after that, the lot is calculated to recoup all the prior losses and the percent reduction is applied to that new lot before it is placed. Also need option true/false that the modifier will only work if DD is at certain level e.g. 10% or bigger (input DDpercentActivateModifyer).
LossCount1 LossModifyPercent1
LossCount2 LossModifyPercent2
LossCount3 LossModifyPercent3
"
"
"
LossCount10 LossModifyPercent10
option to divide the pending orders and space them with gaps. E.g. if the pending buy is 1 lot at 1.30000 and we select this option. we specify number to divide by (eg 3) and gaps eg 20). so we have 0.33lot at 1.30000, 0.33lot at 1.3020, 0.33lot at 1.3040. And the same for the pending sell parts. Each of the divided lot parts has its own TP and SL, which will be staggered if we select the divide lot option. For the working of the ea all the divided parts must reach TP for the cycle to end. BUT if only one (or several) of the orders are filled (all the filled) and they SL, then they are deleted and replaced with bigger pending. Also when divided parts are filled, the opposite parts delete and replace bigger.
stop and remember option: if we are in the middle of a cycle (when all the filled order parts are SL) and the signal says not to trade, remember the correct pending order sizes and the gaps and place the pending orders again only when the signal says to trade again.
option to redivide again: give true false option in the event we use the lot divide option, to redivide the lot after partial lots are SL. eg. say we have 1 lot divided into 3 parts 0.33 each. lets say only the first part is filled and SL. then the first part is filled again and SL and so on. If we don't select the option to redivide, we wind up with very big pending order in the first part and much smaller pending orders in part 2 and part 3. If we select this option then after each part is SL the new lot is divided into 3 equal parts.
option true false for all divided parts to have one common TP level X pips above the highest buy.
option true false for all divided parts to have one common SL level X pips below the lowest buy.
option to add channels (sets) of buy/sell orders. So we get signal to start trading. we open pending buy/sell channel. if the market moves 20 pips higher (ChannelGapPips) and trade signal is still positive, add another buy/sell channel. Every 20 pips add a channel as long as trade signal is positive, but don't overlap channels. Each channel works by itself without connection to another channel until it gets to TP. If we use lot divide option and channels we will have overlapping positions, this is ok. But not to put channels on top of one another.
Ea allows me to change the magic number
Ea runs on multiple charts or can run with different settings on the same chart.
If broker loses connection from the market or if my VPS loses connection to the broker, ea sends warning message via sms and email to 3 people.
MaxxDD, close all positions.
Button to close all positions in live trading, in emergency, and stop the ea work.
show info on chart
number closed cycles. current DD. Max DD. current free margin. Min free margin.
show each indicator on chart that was selected for use. Show the trigger input setting and the current value for the market. If trigger is met, show "trade" (or "no trade"). When all triggers are met show "all show trade".
show me all ea input settings to one side of the chart.
on off option to show tp lines and SL lines.
Thanks.