FisherMan EA
Input :
Initial lot size : LS
Number of start orders (NO)
Time frame check : M1, M5, H1, H4, D
START TIME (ST) – only when we use time frame D1 : Time when the Ea every day check the price (00:00:00). When the EA start he take the last price (LP) and we name it REFERENCE PRICE (RP).
BOX SIZE (BS): in pip. If when the price is check EA change the RP like that:
If LP is > (RP + BS) the new RP will be PR + (BS*Round(LP-RP)/BS)) -> when the function Round take only the integer number and no the decimal like if (LP-RP)/BS is 1,23545 it take 1, if it is 0.86452 it take 0 , if it is 3,440590’ it take 3 ---end so on and this number is multiply per BS…so we got the new RP.
The same is LP < (RP – BS).
Strategy 1:
When we start the EA we are flat, at the beginning of the new bar of time frame [ when we use D at (ST)] if LP is > RP+BS we open a NO buy orders at the market. If the LP is < PR-BS we open NO sell orders at the market. Then check the LP and change the RP with the new RP as explain above.
Any time at the beginning of new bar [or at the ST if we use D], if we have open orders long (buy) and the LP> RP-BS we close one (1) of the open orders, we do this until we are open just whit only one order, if we have one order open we do not close any order anymore until the stop and reverse signal.
If at the beginning of new bar [or at the ST if we use D], we have open orders (one o more) and LP< RP – BS we close all orders and go shot (sell) whit NO orders in sell at the market (STOP and REVERSE). Then we change the RP as the formula above.
Same strategy if we are short…any time at the beginning of the new time frame [or at the ST if we use D], if the LP is RP – BS we close just one sell order….until we have only one open order then we don’t close any order until there is the stop and reverse (when LP > RP + BS).
Strategy 2:
At the beginning of the new bar of time frame [ when we use D at (ST)] if LP > RP + BS we open 1 (only one ) buy order….sell if LP < RP – BS.
If we are long with one o more orders open during the time (one order any LP> RP + BS) , the first time at the beginning of any time frame chose [ or when we use D at (ST)] , if LP < RP – BS, we close all the open orders and go shot with jus one (1) order.
Same logic for the shot position.