Jump to content
Tom Next - Daytrading Community

Multitimeframe entry/exit


siscop

Recommended Posts

Eventuell weiß jemand die Antwort zu meinem Problem.

data1 = Tageschart einer Aktie

data2 = Minutenchart der selben Aktie

Wenn etwas im Minutenchart passiert will ich dort einsteigen. Position glattstellen will ich am Ende des Handelstags.

if ... then
buy this bar on close of data2;
sell this bar on close of data1;

Leider nimmt er diesen code nicht an. Er stört sich am "close of data1" bzw. "close of data2.

Kennt jemand eine Lösung?

Eine feste Uhrzeit als Ende anzugeben wollte ich eigentlich vermeiden

Link to comment
Share on other sites

Stell das mal um nach

 

condition1 = XYZ data1;
condition = ABC data2;

if condition1 = buy 123 shares at market;
if condition2 = sell 123 shares at market;

 

 

So wird sichergestellt, dass immer auf Data 1 gehandelt wird und der Code liest sich leichter, und es sollte gehen mit den verschiedenen TF.

Trotzdem aber das kleinste TF als data1 nehmen. Dann werden die Trades genauer.

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...