Jump to content
Tom Next - Daytrading Community

Ein weiteres System aus dem selben Magazin


StefanBu

Recommended Posts

Hier noch ein System, welches ich für den Maran programmiert habe:

Input: Ma1(3),Ma2(6),Mo(6),Rs(12),Wi(12)
Var: Ampel(0)

{Indikatorberechnung}
Value0 = MACD(Close,Ma1,Ma2)
Value1 = Momentum(Close,Mo)
Value2 = RSI(Close,Rs)
Value3 = WilliamsR(Wi)

{Berechnung der 'Ampel}
Ampel = 0
If Value0 > 0 Then Ampel = Ampel +1
If Value1 > 0 Then Ampel = Ampel +1
If Value2 > 50 Then Ampel = Ampel +1
If Value3 > 0.5 Then Ampel = Ampel +1

{Kauf bzw. Verkauf}
If Ampel > 3 Then Buy High Stop   
If Ampel < 1 Then Sell Low Stop 

{Visualisierung}
Draw "Ampel" ,ampel,1,1,0,Green
Draw "1" ,Value0,1,1,0,Red
Draw "2" ,Value1,1,1,0,Blue
Draw "3" ,Value2,1,1,0,White
Draw "4" ,Value3,1,1,0,Yellow

Edited by Henrik
Code in Code-Tags gesetzt
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...