What is the source code of this simple concept?
"Long position when Stochastic Slow<20, and then Sell position when Stochastic Slow>80."
No any other action. No Shortsell . No buytocover.
What is the source code of this simple concept? [SOLVED]
- Angelina MultiСharts
- Posts: 260
- Joined: 28 Dec 2016
- Has thanked: 28 times
- Been thanked: 66 times
Re: What is the source code of this simple concept?
As this is beyond our regular scope of support, I will leave it open for another member of our forum to answer.
Re: What is the source code of this simple concept?
Hope this helps.What is the source code of this simple concept?
"Long position when Stochastic Slow<20, and then Sell position when Stochastic Slow>80."
No any other action. No Shortsell . No buytocover.
Code: Select all
vars:var0(0),var1(0),var2(0),var3(0);
Value1 = Stochastic( H, L, C, 14, 3, 3, 1, var0, var1, var2, var3 ) ;
if marketposition=0 and var3<20 then buy this bar c;
if var3>80 then sell this bar c;