JohnScher

one notch for long

Category: Strategies By: JohnScher Created: January 27, 2022, 9:50 AM
January 27, 2022, 9:50 AM
Strategies
2 Comments
one notch for long

The overriding overriding overriding overriding overriding… overriding trend since the beginning of the indices is long.
With short we always trade only corrections.

We look for entries into the trend?
So we buy when the price has fallen and starts to rise, not at a new high!

Easygoing.

Below is a small code that defines possible entries.

//-------------------------------------------------------------------------
// maincode : everytime long kavg5 co2 M9
//-------------------------------------------------------------------------
// created and coded by johnscher
// s&p500 longonly strategy
// timezone europe, berlin
// timeframe daily


defparam cumulateorders = false

once positionsize = 1

c1 = exponentialaverage [1] (close) crosses over exponentialaverage [2] (close)
c2 = close < average [5]


if c1 and c2  then
buy positionsize contracts at market
endif


set stop %loss 9
set target %profit 9

Download
Filename: one-notch-for-long.itf
Downloads: 340
JohnScher
JohnScher Veteran
Code artist, my biography is a blank page waiting to be scripted. Imagine a bio so awesome it hasn't been coded yet.
Author’s Profile

Comments

2c95
5 years ago
#

thanks, why do U prefer average than lowest ? to close under average does'nt mean another lowest is less possible than reversal move.... Chris

KAMJKAZE
5 years ago
#

thanks, really interesting!

ProRealCode ProRealCode
Loading...