Morning Buy => Morning Sell?

Post Reply
Coala
Posts: 9
Joined: 01 Jun 2014 19:18

Morning Buy => Morning Sell?

Post by Coala »

Ich würde gerne das system auch shorten lassen bzw. zumindest einmal backtesten, wie gut oder nicht gut dies funktioniert. wie könnte ich das in die strategie einbauen?

LG
User avatar
WHS Support
Posts: 2443
Joined: 14 Feb 2013 10:27

Re: Morning Buy => Morning Sell?

Post by WHS Support »

Hallo Coala,

Die Strategy ist zwar auf Long ausgelegt, aber Sie können sie auch einfach für short modifizieren.
Hierzu müssen Sie nur kurz im Express Code das Sentiment von 100 auf 0 ändern.

Freundliche Grüße
Dominic
WHS
Coala
Posts: 9
Joined: 01 Jun 2014 19:18

Re: Morning Buy => Morning Sell?

Post by Coala »

Vielen Dank für die rasche Antwort! Liebe Grüße
Coala
Posts: 9
Joined: 01 Jun 2014 19:18

Re: Morning Buy => Morning Sell?

Post by Coala »

Da war ich wohl zu voreilig..Wo würde ich dies denn genau ändern? :shock: LG
User avatar
WHS Support
Posts: 2443
Joined: 14 Feb 2013 10:27

Re: Morning Buy => Morning Sell?

Post by WHS Support »

Hallo Coala,

Kein Problem,

Hier der Code für Long:

Express TimeEntryLong

Vars

Series
senti(50);


Input
$EnterAT(000,2359,1200);

Calculation
CalculateAtEveryTick(false);
If (time >= NumericToTime($EnterAT)) AND ((time[1] < NumericToTime($EnterAT)) OR IsNewDay()) then
//If timeOpen = NumericToTime($EnterAT) then
begin
senti = 100;
// Highlight("slot","lightgreen");
end

Interpretation
begin
if Senti = 100 then Sentiment = 100;
end


Dort dann einfach die 100, die in der FutureStation ja für long steht, durch eine 0 ersetzten, die dann die Shorttrades übernimmt.
(würde dann wahrscheinlich noch Sinn machen es TimeEntryShort zu nennen)

Freundliche Grüße
Dominic
WHS
Coala
Posts: 9
Joined: 01 Jun 2014 19:18

Re: Morning Buy => Morning Sell?

Post by Coala »

VIelen Dank!
Post Reply

Return to “WHS NANOTRADER - EXPRESS PROGRAMMING”