coding help
Hello,
I wrote a code for amibroker with rotational trading enabled. The system rotates monthly. Now I would like to add that the system rotates monthly but buys on the second trading day. My problem ist that I do not know how I could code this because of a monthly / daily clash...
PositionScore
Hello,
I have a question:
I would like to test if my score is bigger then 100.
If I write my code as followed:
test = score > 100;
PositionScore = IIf ( rotate, test, scoreNoRotate);
My result for PositionScore is 1 or 0. But I would like to get the number.
Could...
Hello,
I wrote a code where I would like to buy the next day opening thats why I set SetTradeDelays (1,0,0,0).
But it still buys on the same day and not on the following.
Does anybody knows why?
Hello,
I would like to code that if I got profit the month before I would like to invest 2 % of it in the next month.
Does anybody knows how I could programm this?
Thanks in advance.
My code is not ranking the worst ones. HAs anybody an idea?
this is my code:
SetTradeDelays (0,0,0,0);
SetOption( "InitialEquity", 50000 ); // Eigenkapital gesamt = 50000
SetPositionSize(10000,spsValue); // Eigenkapital pro Aktie = 10000
SetBacktestMode(backtestRotational)...
Hello,
I want to try a system which says that I would like to buy the 5 worst stocks every month with rotational trading.
All in all I now how roational trading works.
But my code I wrote does not calculate the 5 worst stocks.
The 5 worst stocks are the 5 stocks which have the worst...
Hello,
so far my code is like that:
e = Equity();
EquityMAlength = Optimize ( "EquityMAlength", 3,1,12,2);
EquityMA = MA ( e, EquityMAlength);
Pass = IIf (e >= EquityMA, 1,0);
Filter = 1;
PortEquity = Foreign("~~~Equity","C");
AddColumn ( PortEquity, "Close", 1.4)...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.