Greetings, im having troubles using the block code Open Positions.Positions to place just one position everytime my signal is triggered

, but looks like its not working, neither on vjf or in jforex

it doesnt lock in just one position, instead it opens multiple positions, actually my code is using a default period of 1minute.

Is there a better way to lock the strategy in just one position everytime? or am i missing something else?