|
This is an example of how to use, with Insider3000 and its programming language, stop loss, and define an enter/exit price different from the most common value of Open/High/Low/close.
Description:
The Trading System is based simply on the break out of the minimum value (for Shorts) and maximum (for Longs) of the close of n. preceding periods.
There are short selling signal when the close of the current period is lesser than the minimum close calculated on n. preceding periods.
There are Long buying signal when the close of the current period is greater than the maximum close calculated on n. preceding periods.
The stop-loss is respectively fix to:
-
for long operations the max close period calculated on n. preceding periods starting from the periods before the current one.
-
for short operations the min close period calculated on n. preceding periods starting from the periods before the current one.
To optimize the trading system we inserted 2 Options, common to all modules, therefore they can be used in any module:
-
OptMin => Is the number of periods preceding the current one, on which calculate the closing minimum
-
OptMax => Is the number of periods preceding the current one, on which calculate the closing maximum
You can add other options or more simply change the range of value they can assume.
NB Remember than the options are used to test the Trading System and the outcome will tell which values in the paste have obtained best results.
Insert on the right box in the Trading systems management window (using copy and paste), the code shown here below
Common Options
Enter Long
Exit Long
Enter Short
Exit Short
|