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
FastK (2) signal
- TJ
- Posts: 7743
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2222 times
Re: FastK (2) signal
THis is a good place to start: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
[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
-
- Posts: 196
- Joined: 08 Aug 2012
- Has thanked: 41 times
- Been thanked: 41 times
Re: FastK (2) signal
pretty much like you wrote it.
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.
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;
I dont know how to do " falls below 30 on todays closing price ".
Perhaps others will add some more info.