?? Orderentry by crossover MA[displace] ??

Studies that have been contributed to the community by other users. If you’ve got something useful to share, that’s great!
User avatar
aiti
Posts: 43
Joined: 25 May 2009
Location: Germany
Has thanked: 43 times
Been thanked: 20 times

?? Orderentry by crossover MA[displace] ??

Postby aiti » 23 Jul 2012

Hello Programmers,

I want to build a strategy with orderentry if close crossing SMA[-3].
For visual testing at the chart there is no Problem by plotting the SMA with displace.
But is there a possibility to build this in the code of a strategy?

Thanks for any answer

aiti

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

Re: ?? Orderentry by crossover MA[displace] ??

Postby TJ » 23 Jul 2012

Hello Programmers,

I want to build a strategy with orderentry if close crossing SMA[-3].
For visual testing at the chart there is no Problem by plotting the SMA with displace.
But is there a possibility to build this in the code of a strategy?

Thanks for any answer

aiti
If the logic works in an indicator,
the logic will work in a strategy.

If you can code it in an indicator,
you can code it in a strategy.

User avatar
aiti
Posts: 43
Joined: 25 May 2009
Location: Germany
Has thanked: 43 times
Been thanked: 20 times

Re: ?? Orderentry by crossover MA[displace] ??

Postby aiti » 23 Jul 2012


If the logic works in an indicator,
the logic will work in a strategy.

If you can code it in an indicator,
you can code it in a strategy.
This is a lesson I have learned from your posts in this forum.

But I didnot find a way to code a "-3 displace" in the value of the SMA.

I am not a programmer, i am only an easylanguage user. ;-)

aiti :-)

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

Re: ?? Orderentry by crossover MA[displace] ??

Postby TJ » 23 Jul 2012


If the logic works in an indicator,
the logic will work in a strategy.

If you can code it in an indicator,
you can code it in a strategy.
This is a lesson I have learned from your posts in this forum.

But I didnot find a way to code a "-3 displace" in the value of the SMA.

I am not a programmer, i am only an easylanguage user. ;-)

aiti :-)
I am not a programmer either, I just read the manual.

If you have lots of trading ideas that you want to try out,
I would suggest you to start with the EasyLanguage ebooks.
There are lots of examples you can use and adapt.


Return to “User Contributed Studies and Indicator Library”