Support Board
Date/Time: Wed, 27 Nov 2024 00:27:26 +0000
Post From: How to change trade twconfig based on ATR range values
[2023-10-12 11:16:47] |
fried4104 - Posts: 66 |
Final version, thanks @sgne, I made it a bit simpler with your suggestion for one liner: O3 =if(and(ID5.SG1@3>=0.2,ID5.SG1@3<0.9),"3-6",if(and(ID5.SG1@3>=0.9,ID5.SG1@3<1.05),"5-7",if(and(ID5.SG1@3>=1.05,ID5.SG1@3<1.20),"7-8",if(and(ID5.SG1@3>=1.20,ID5.SG1@3<1.45),"8-8",if(and(ID5.SG1@3>=1.45,ID5.SG1@3<2.55),"10-10",if(and(ID5.SG1@3>=2.55,ID5.SG1@3<3.55),"12-10",if(and(ID5.SG1@3>=3.55,ID5.SG1@3<10),"15-15",0)))))))
J112 =concatenate(O3,".twconfig")
Thanks both @Sawtooth and @sgne, amazing! I need now to search how to make it toggle-able (is this even a word? :) |