Visual Jforex check if position is open

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

Translate to English Show original

orto leave comments

Answers: 1

Best Answer

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).

Translate to English Show original
8 Mar. 2016 by

orto leave comments
Please log in or register to post answer.