Limit trade per signal
-
Hi,
Im struggling to limit the trades per Half trend signal. Right now if a trade gets closed before getting a new signal, it reopens a another one.
https://fxdreema.com/shared/cTZJHG9Kc
Can someone explain in detail how to limit them? Thank you
-
-
as far as i remember the halftrend right they don't use 0 they just have empty values
so if you want to check if a value is zero you would have to open a custom code block
if (halftrend_value0 == EMPTY_VALUE) buy=1
if you want to get non empty values the code looks like this
if (halftrend_value!= EMPTY_VALUE) buy =1
-
@bk7 it does have a hidden buffer that uses values 0 and 1 and i was trying to work with that but will test this out too, tho im a noob, id apricate a visual representation of what you meant if you dont mind
-
i managed to figure it out