Termos de Referência
inputs :
1 - order factor type : initial contract size / net contract size
initial order size : it mean the multiply on the initial position it mean if i open 1 lot and the factor is 2.0 the second order will be 2 and the third one it will be 4
net contract size : it mean the multiply on net contract opened like exposure , it mean if i open 1 lot and the factor is 2.0 the second order will be 3 because in the stage number 1 the net is 1 and multiply by 2 the second will be 3 and if i have 1 buy and 3 sell the net is 2 and the third one is 6 and right now the net contract is 4
2 - order factor : it mean multiply by what like if i use 2.0 it meal the calculation will be multiplied * 2 every time
3 - TP type : dollar(net PnL all account) / pip
4 - TP value : 1.0
5 - Grid type : dollar( net PnL all account ) / pip
6 - Grid Value : 1.0
Expert structure :
1- the order will be placed manually or by another expert
2- when the order placed get information about this order and check the order factor type and size
3 - if price move with me closed by TP and if the price move to the opposite side by grid distance open the another side order based on the information's above
4 - finally it will close all orders on the account when the net PNL hit
***** there a two important thing : *****
1 - the expert before close should calculate the swap and commission's
2 - there's a brokers put limit on the maximum lot per one deal like the max is 20 and i want to open 45 on the net contract size he should divide the number and take it by 2 positions and if its more than 20 for each one divide it by 3 positions and then ,,,etc
#IT WILL BE OPEN SOURCE
# I HAVE TO TEST IT BEFORE CONFIRMATION