What is the source code of this simple concept?  [SOLVED]

Questions about MultiCharts and user contributed studies.
cktsui888
Posts: 11
Joined: 22 Mar 2017
Has thanked: 1 time

What is the source code of this simple concept?

Postby cktsui888 » 05 Apr 2017

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.

User avatar
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?

Postby Angelina MultiСharts » 07 Apr 2017

As this is beyond our regular scope of support, I will leave it open for another member of our forum to answer.

faraz
Posts: 144
Joined: 25 Feb 2011
Has thanked: 26 times
Been thanked: 57 times

Re: What is the source code of this simple concept?

Postby faraz » 08 Apr 2017

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.
Hope this helps.

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;

cktsui888
Posts: 11
Joined: 22 Mar 2017
Has thanked: 1 time

Re: What is the source code of this simple concept?  [SOLVED]

Postby cktsui888 » 08 Apr 2017

Thanks a lot! I will try...


Return to “MultiCharts”