Support Board
Date/Time: Wed, 15 Jan 2025 16:19:59 +0000
Post From: Simple auto trading buy/sell crossover SMA
[2017-08-09 20:53:22] |
Turbo-Jammer - Posts: 14 |
For downtrend I made the following changes, but doesn't seem work. O3: =IF(CROSSFROMABOVE(ID0.SG4@3:ID0.SG4@4,ID2.SG1@3:ID2.SG1@4),1,IF(CROSSFROMBELOW(ID0.SG4@3:ID0.SG4@4,ID3.SG1@3:ID3.SG1@4),0,O4)) P3: =IF(O3=0,0,IF(AND(O3,E3>ID2.SG1@3),P4+1,P4)) M3: =AND(O3,P4<$K$1,P3=$K$1) N3: =AND(Q4,Q3=0) Q3: =IF(M3,1,IF(O3=0,0,Q4)) With the changes to O3,Q3 and P3, isn't it suppose to sell Entry when it close above High SMA and Sell Exit when it close above the low SMA? |