
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
So i have been thinking many days on this Problem and don't know how to fix it, maybe someone have Idee for algorithm, i will be very thankful
Basically it's a Grid system, at Start it will open 2 level above with predefine Increment and 2 level under . Let say A for above and U for under , we have A1 , A2, and U1 U2. If price touch level A1 i want it to place order in U area , that's valid for A2 too . Vice versa for U1 U2, Order will be placed in A area. So i wrote some code like this :
Now the Problem is that logic is true whenever the Price is above that level and Order will be placed continuously . Can you suggest me how to block it so i will be excute only once ? Thanks so much