指定
Hi
As you will see the EA opens multiple buy and sell orders at the same level with different TP's a set distance apart .There are no hard SL or anything.Just TP's and the I want the EA_Version_2 to have the Profit and Loss functions from EA_Version_8
I want you to copy the following functionsa from one EA to the other.So basically just need to find the function and copy it over as the EA was coded by the same guy and has the same basic functionality.The Version_8 just uses a ALR in it and Version_2 doesn't
//==========================================================================================
extern string Total_Profit_Tool=" ------ Total Profit Setting ------";
extern bool Enable_Total_Profit=false;
extern double Total_Profit=80;
extern string Total_Loss_Tool=" ------ Total Loss Setting ------";
extern bool Enable_Total_Loss=false;
extern double Total_Loss=80;
extern bool Enable_AutoRestart=false;
//============================================================================================
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Then I want to you to add the following to the New_Version_2 with the above settings included
Here is the example of what I want to happen :
When the market is trending down all the sell orders TP's will be hit leaving the buy orders open.I want the EA to increase the size of the Buy orders by a lot factor of X every set amount of pips it moves away from the first buy order placed.
So for example :
If the first order opened and price move by say 100pips away from that price I want the EA to start placing buy orders at whatever the original order * the lot factor BUT keep the sells the same size ( Please ask if you need more info about it )
So if the EA were to plot order every 20 pips and I have lot_Factor of 2 set to take effect every 100pips it would place 5 orders of the same buy size 5 time as the price moved lower and then after going down 100 pips it would only double the buys till it moved down another 100pips and it would double the buys again but leaving the sells at the same volume
There is a pic attached to see what it looks like when trading