[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AW: [amibroker] Forex



PureBytes Links

Trading Reference Links

Hello,

This is unfortunately normally, you see the 4 digits only after backtest. 
This is my code, I have build a digits parameter for usdjpy (2 digits) and
the others with 4 digits.

_SECTION_BEGIN("System parameters");
Digits = Param("Digits",4,0,4,1);
Digits_value =
IIf(Digits == 0,0,
IIf(Digits == 1,0.1,
IIf(Digits == 2,0.01,
IIf(Digits == 3,0.001,
IIf(Digits == 4,0.0001,-1e10)))));
default_stop = Param("Default stop",5,5,100,1)*Digits_value;
default_profit = Param("Default profit",10,10,100,1)*Digits_value;
PointValue = Param("Point value",10000,1,10000,1);
PositionSize = MarginDeposit = 1;
Equity(1);
_SECTION_END();



Regards
Thomas
www.tradingbasis.com


-----Ursprüngliche Nachricht-----
Von: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] Im Auftrag
von andreyoffline
Gesendet: Dienstag, 05. Juli 2005 19:18
An: amibroker@xxxxxxxxxxxxxxx
Betreff: [amibroker] Forex

I read post on wikipedia about how to debug errors. Its really 
interesting!!! Keep up good work!!! 

My question is how to set right parameters for Forex backtesting. 
Tomasz and others helped me with "points only" test. All you need to 
do is turn Futures mode on and write this line in formula 
PositionSize = MarginDeposit = 1;

But i have a problem. Tester shows only two numbers after point in 
results (1.02) and for pairs like EURUSD I need four. How to fix it?

Another question. If i want to create normal test. Does Futures mod 
sill must be turned on? 




Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to 
SUPPORT {at} amibroker.com

For other support material please check also:
http://www.amibroker.com/support.html

 
Yahoo! Groups Links



 





Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to 
SUPPORT {at} amibroker.com

For other support material please check also:
http://www.amibroker.com/support.html

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/