|
|
Source code |
1 2 |
SetOption("UseCustomBacktestProc", True);
SetCustomBacktestProc("C:\\Programme\\AmiBroker\\Formulas\\Custom\\EquityMonaco.afl");
|
Users who thanked for this post:
cavobi (25.01.2012), Perfect Trader (25.01.2012), Vikke (25.01.2012)
@Trash
Kannst Du bitte den Link nochmal posten?
Users who thanked for this post:
Perfect Trader (10.01.2012), Vikke (10.01.2012)
Hat jemand ähnliches schon gelöst?
Users who thanked for this post:
Perfect Trader (10.01.2012), Vikke (10.01.2012)
Hab hier erstmals nbissi mit Round und Prec gespielt
Versuche das aber noch mit 2Bar Range und SwingHigh/Low zu kombinieren zwecks schnellerem Possizing.Hab mal einen kleinen Pipkalkulator für den Euro mit ATR20 und Tagesranges programmiert. Weiß jemand wie man den Rand gerade macht oder wie man die Sache optisch rechts mehr einrahmen kann?
![]()
Source code
1 2 3 4 5 6 7 8 9 10 11 12 . . . . Units10 = Prec(((Maxriskeuro/Pipwert/SL10)*100),2); Units15 = Prec(((Maxriskeuro/Pipwert/SL15)*100),2); Units20 = Prec(((Maxriskeuro/Pipwert/SL20)*100),2); Units25 = Prec(((Maxriskeuro/Pipwert/SL25)*100),2); Units30 = Prec(((Maxriskeuro/Pipwert/SL30)*100),2); . . .
Um Units zu erhalten, sollte es doch eher /Ticksize statt *100 sein, oder nicht?
Hab mal einen kleinen Pipkalkulator für den Euro mit ATR20 und Tagesranges programmiert. Weiß jemand wie man den Rand gerade macht oder wie man die Sache optisch rechts mehr einrahmen kann?
![]()
Source code
1 2 3 4 5 6 7 8 9 10 11 12 . . . . Units10 = Prec(((Maxriskeuro/Pipwert/SL10)*100),2); Units15 = Prec(((Maxriskeuro/Pipwert/SL15)*100),2); Units20 = Prec(((Maxriskeuro/Pipwert/SL20)*100),2); Units25 = Prec(((Maxriskeuro/Pipwert/SL25)*100),2); Units30 = Prec(((Maxriskeuro/Pipwert/SL30)*100),2); . . .
Erledigt
![]()
Source code
1 2 3 4 5 6 7H3 = SelectedValue(TimeFrameGetPrice("H", inDaily, 0, expandLast)); L3 = SelectedValue(TimeFrameGetPrice("L", inDaily, 0, expandLast)); Plot(H3,"PHigh",colorBlue, styleLine|styleNoRescale); Plot(L3,"PHigh",colorBlue, styleLine|styleNoRescale); Plot(C,"",colorDefault,GetPriceStyle());
|
|
Source code |
1 2 3 4 5 6 |
H3 = SelectedValue(TimeFrameGetPrice("H", inDaily, 0, expandLast));
L3 = SelectedValue(TimeFrameGetPrice("L", inDaily, 0, expandLast));
Plot(C,"",colorDefault,GetPriceStyle());
Plot(H3,"PHigh",colorBlue, styleLine|styleNoRescale);
Plot(L3,"PHigh",colorBlue, styleLine|styleNoRescale);
|
Users who thanked for this post:
Perfect Trader (10.01.2012), Vikke (10.01.2012)
Hat jemand ähnliches schon gelöst?
Users who thanked for this post:
Perfect Trader (10.01.2012), Vikke (10.01.2012)

|
|
Source code |
1 2 3 4 5 6 7 |
H3 = SelectedValue(TimeFrameGetPrice("H", inDaily, 0, expandLast));
L3 = SelectedValue(TimeFrameGetPrice("L", inDaily, 0, expandLast));
Plot(H3,"PHigh",colorBlue, styleLine|styleNoRescale);
Plot(L3,"PHigh",colorBlue, styleLine|styleNoRescale);
Plot(C,"",colorDefault,GetPriceStyle());
|
Users who thanked for this post:
Perfect Trader (10.01.2012), trash (10.01.2012)
Habe versucht mit styleownscale noch die Prev. Highs/Lows darzustellen, leider befindet sich PHigh soweit oben, dass der Kurs gestaucht wird. Wie kann man die 1,28119 soweit nach oben verschwinden lassen, dass die Preisdarstellung nicht beeinflusst wird, sondern die 1,28119 nur oben rechts als Zahl angezeigt wird?|
|
Source code |
1 2 |
Plot(TimeFrameExpand(HI2,inDaily),"PHigh",colorBlue|styleOwnScale); Plot(TimeFrameExpand(LW2,inDaily),"PHigh",colorBlue); |
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
Balance = Param("Account Balance",12500,1,100000,1);
Maxrisk = Param("Max Risk %",2,0.25,50,0.25);
SL10 = 10;
SL15 = 15;
SL20 = 20;
SL25 = 25;
SL30 = 30;
Pipwert = 10/C;
Maxriskeuro = Balance*Maxrisk/100;
Units10 = Prec(((Maxriskeuro/Pipwert/SL10)*100),2);
Units15 = Prec(((Maxriskeuro/Pipwert/SL15)*100),2);
Units20 = Prec(((Maxriskeuro/Pipwert/SL20)*100),2);
Units25 = Prec(((Maxriskeuro/Pipwert/SL25)*100),2);
Units30 = Prec(((Maxriskeuro/Pipwert/SL30)*100),2);
GfxSetBkColor(colorGrey40);
GfxSetTextColor(colorYellow);
GfxTextOut("SL 10 : "+Units10,5,80);
GfxTextOut("SL 15 : "+Units15,5,100);
GfxTextOut("SL 20 : "+Units20,5,120);
GfxTextOut("SL 25 : "+Units25,5,140);
GfxTextOut("SL 30 : "+Units30,5,160);
TimeFrameSet(inDaily);
ATR20 = ATR(20);
TimeFrameRestore();
HI2 = TimeFrameGetPrice( "H", inDaily, -1 );
LW2 = TimeFrameGetPrice( "L", inDaily, -1 );
tdyh = TimeFrameGetPrice("H", inDaily, 0);
tdyl = TimeFrameGetPrice("L", inDaily, 0);
TickSize = IIf(StrRight(Name(),3) =="JPY",0.01,0.0001);
ATR20 = ATR20/TickSize;
ATR20 = Prec(ATR20,0);
tdy = (tdyh-tdyl)/TickSize;
tdy2 = Prec(tdy,0);
Calc = (HI2-LW2)/TickSize;
Calc2 = Prec(Calc,0);
GfxSetBkColor(colorBlue);
GfxSetTextColor(colorWhite);
GfxTextOut("ATR : "+TimeFrameExpand(ATR20,inDaily),5,20);
GfxTextOut("PRE : "+Calc2,5,40);
GfxTextOut("TDY : " +tdy2,5,60);
|

Users who thanked for this post:
Perfect Trader (22.12.2011), Vikke (22.12.2011)
Forum Software: Burning Board® 3.1.6, developed by WoltLab® GmbH