Support Board
Date/Time: Wed, 15 Jan 2025 16:19:04 +0000
Post From: Simple auto trading buy/sell crossover SMA
[2017-08-08 20:23:21] |
Sawtooth - Posts: 4152 |
If you want alternating arrows, you'll need to create a persistent variable at an entry, then cancel it at an exit. Then look for the first occurrence of each for an entry and exit, respectively. Try this: O3: =IF(CROSSFROMBELOW(ID0.SG4@3:ID0.SG4@4,ID3.SG1@3:ID3.SG1@4),1,IF(CROSSFROMABOVE(ID0.SG4@3:ID0.SG4@4,ID2.SG1@3:ID2.SG1@4),0,O4)) K3: =AND(O4=0,O3) L3: =AND(O4,O3=0) Your entries and exits are intrabar (Signal Only On Bar Close is set to No), so this will not always work correctly. Arrows will only show what happened at close of bar, so you will have some entries and exits in bars without arrows. Using intrabar signals will always complicate things. Date Time Of Last Edit: 2017-08-08 20:24:50
|