There is no once per signal, you have to create it with flags, once per bar may do it, but SAR will be the same on many candles,.
Posts made by jstap
-
RE: Make a trade once per indicator signalposted in Questions & Answers
-
RE: Make a trade once per indicator signalposted in Questions & Answers
Set flags, if trade can be placed set flag to tree, if not leave a false, check with a check flag block, you can switch on/off as you like.
-
RE: Do the advisors created in fxdreema have restrictions for trading on a real account? I've encountered this issue - trades open on the demo account, but not on the real accountposted in Questions & Answers
If created correctly they work the same on live as backtest, sometimes though they perform differently on backtest to a live environment.
-
RE: Martingale EA - Platform Restartsposted in Questions & Answers
No I would set a new tree with a for each block, these are loops so under a no trade block will start and run the loop only once, so for continual checking of pips away needs to be free from the no trade block, once a trade is placed a no trade block stops passing.

-
RE: open trade after crossover not beforeposted in Questions & Answers
Set your candle ID's in your condition to 1, there is a cross but on current candle can reverse quickly, setting to 1 means it will wait until next candle before checking
-
RE: Martingale EA - Platform Restartsposted in Questions & Answers
Then you set 4 terminal variables by different name, this is the name you use to read them.
-
RE: Martingale EA - Platform Restartsposted in Questions & Answers
yes is the only way to have it remember after close. The easiest way is to set as soon as placing a trade, this is just an example, once saved in a terminal variable you can read it anywhere:
-
RE: open trade after crossover not beforeposted in Questions & Answers
For a start once per bar needs to be beneath the condition, check profit - close should be in a separate tree, this will make only 1 trade per candle, if still over trading the cross, you need to add more logical conditions to restrict.

-
RE: Martingale EA - Platform Restartsposted in Questions & Answers
Yes, you need to use/store/delete within a global variable (terminal variable on here)
-
RE: Trailing Stop as per ATRposted in Questions & Answers
2 use a breakeven block set with stoploss, 3 set start to relevant value, but be warned as setting stop (trail pips) to 1:2 then it will likely close at this value.
-
RE: how to do once per each cross?posted in Questions & Answers
You need to add to the logic, set flags true/false as things happen, and check before/after this way you control what is classed as happened and can happen.
-
RE: wait 16 minutesposted in Questions & Answers
I find the easiest way is to constantly add 1 every minute to a variable, variable to 0 on event (like candle opening), check the value and when it reaches 16 commit to do something.
-
RE: CLOSE ALL TRADES AT A PARTICULAR TARGETposted in Questions & Answers
Pips means regardless of lot size the trade will stop when enough distance is covered, so I see why it would make sense. But test with money, once working as you want you can upgrade the logic to pips, because at this point you will know the money value of a trade's action, so on the same lot you will see how many pips give the same result.
-
RE: CLOSE ALL TRADES AT A PARTICULAR TARGETposted in Questions & Answers
I can but get things working as you want, then if needed you can refine by changing set up's to use pips.
-
RE: CLOSE ALL TRADES AT A PARTICULAR TARGETposted in Questions & Answers
It does exactly that, only allows trades if day profit not met then closes, you could not use the close section, and it would work the same if a trade closes above the value. It doesn't work for pips, a different multi block set up would be needed.
-
RE: CLOSE ALL TRADES AT A PARTICULAR TARGETposted in Questions & Answers
@Bogdaiki of cause you can... buy why...
-
RE: CLOSE ALL TRADES AT A PARTICULAR TARGETposted in Questions & Answers
you don't terminate you use 2 blocks, above your trade blocks < the goal amount, above a close block in a separate tree > goal amount
-
RE: CLOSE ALL TRADES AT A PARTICULAR TARGETposted in Questions & Answers
block, check profit (period of time) - close block, this will check profit made over a given time then close if reached.
