FastK (2) signal

Questions about MultiCharts and user contributed studies.
ulf
Posts: 2
Joined: 14 Aug 2014
Has thanked: 3 times

FastK (2) signal

Postby ulf » 22 Nov 2014

I am new to the program multicharts. how can one write a signal that buy on FastK (2) falls below 30 on today's closing price.
Exit when the FastK (2) rises above 70 on the closure.
Ulf

User avatar
TJ
Posts: 7740
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2221 times

Re: FastK (2) signal

Postby TJ » 22 Nov 2014

I am new to the program multicharts. how can one write a signal that buy on FastK (2) falls below 30 on today's closing price.
Exit when the FastK (2) rises above 70 on the closure.
Ulf
THis is a good place to start:

[FAQ] EasyLanguage
Start here if you want to program your own analysis.

Getting Started with EasyLanguage
This is the book you need if you're thinking about using EasyLanguage but don't know where to start.
viewtopic.php?f=16&t=6929

shanemcdonald
Posts: 196
Joined: 08 Aug 2012
Has thanked: 41 times
Been thanked: 41 times

Re: FastK (2) signal

Postby shanemcdonald » 23 Nov 2014

pretty much like you wrote it.

Code: Select all

inputs: length (14), overbought (70), oversold(30);

variables: var1 (0);

var1 = fastk (length );


if var1 crosses below oversold then buy next bar at market;
if var1 crosses above overbought then sell next bar at market;
there are other details you have to cover, but this is a basic code. It sends signal on close of this bar.
I dont know how to do " falls below 30 on todays closing price ".

Perhaps others will add some more info.

User avatar
MAtricks
Posts: 789
Joined: 09 Apr 2012
Has thanked: 286 times
Been thanked: 288 times

Re: FastK (2) signal

Postby MAtricks » 23 Nov 2014

Looks like Shane got the code.

I'd additionally recommend not back-testing on daily close prices. Use intra-day charts with a comparable length on your indicator.


Return to “MultiCharts”