Job finished
Specification
I have the need for 2 ea and I have an idea on a 3rd but at this moment I cannot logically plan the 3rd ea
Here are my requirements
I do not know how this work but I would like to have to code for these ea for future changes as some requirement can be hardcoded, and I can then change them
Ea1 – here is a basic buy sell (drop down) EA on the current ask price, only other input is “Take Profit” input, the STOP loss with be calculated to be opposite setting to TP, normal error checks here are required with alert windows if the trade was taken or not taken and the reason for not been take eg. Account liquidity, or if I requested for a Buy trade but Take profit below ask price, I will most likely never have a Take Profit greater than 60 pips on my trade so that could be hardcoded in if I input a number that is unrealistic to my trading, I can always change later and recompile.
Ea2 here I want an ea that may run on a trade that ea 1 took or on an open trade that I took manually, the lot size here will be even and I will want to action subsequent trades at half the previous lot size until I get to 0.01 then no more trades will be open (if you can have it that a odd number will be halved then the whole number will be used as then new even lot size
This ea will be placed on a graph where only 1 open trade exists for the pair if there is more then 1 it should close with a warning, I want to find the bar where the trade took place and I grab the relevant information, then on the current candle as long as that candle was not the one in which the trade was opened I want to wait until it closes, when it closes if it does so on the same direction as my trade then I will consider a subsequent trade, I will only consider a trade if all the relevant liquidity financials are viable as well as my meeting my requirement which will be that
1) 1) I am in currently in profit
2) 2) Taking the trade on the current spread I will remain profit
Logically 1 could be removed as long as 2 is met 1 will be met
The trade will be taken with the same TP SL as the original trade but on ½ the lots size until you reach 0.01 lots, this will continue this on all subsequent closed bars or stopped when no more trades can be conducted
Finally I want an option to close all open trade on the current pair once I reach a % profit on my account that can be an input say 10%. Question can I have an altert window when I reach close to my % profit target for future analysis eg. Alert you are about to reach your % take profit , finally I have it all close on TP or SL on the current pair.