Hello, i have a startegy on visual jforex, i don't no how to add a condition to check if exist any open positon.
What do i want
If 1 open position:
don't open more position until the actual position is close
If no position open
run strategy
I want my estartegia just open a position at a time
Thanks for the help
You can achieve that by using an "If" block.
Set the first input value to "Positions Amount". You can drag it from "Positions Info -> All Positions -> Positions Amount".
Set the second input value to zero.
Output flow "=" executes when there are no positions on.
Output flow ">" executes when there are one or more positions on.
Please see the image in the below comment (click on the image to enlarge it).