PureBytes Links
Trading Reference Links
Sell = 0; // selling only by stop
TrailStopAmount = 2 * ATR( 20 ); Capital = 100000; /* IMPORTANT: Set it also in the Settings: Initial Equity */
Risk = 0.01*Capital; PositionSize = (Risk/TrailStopAmount)*BuyPrice; ApplyStop( 2, 2, TrailStopAmount, 1 ); ==============
Risk = 0.01*Capital;
PositionSize = (Risk/TrailStopAmount)*BuyPrice;
ApplyStop( 2, 2, TrailStopAmount, 1 ); ==============
Capital is NOT a keyword, just a number. You could have written:
MyWifesMoney = 100000; /* IMPORTANT: Set it also in the Settings: Initial Equity */ Risk = 0.01*MyWifesMoney;
And it would have worked just as well.
Also note the comment starting with /* IMPORTANT You should be setting this in AA->Settings->General Alternatively you could written:
MyWifesMoney = 100000; Risk = 0.01*MyWifesMoney; SetOption("InitialEquity", MyWifesMoney); /* Overrides Initial Equity setting in AA->Settings */
BTW, InitialEquity is not a keyword either, just string of characters that SetOption() recognizes.
Hi, From a help topic, Back-testing your trading ideas, it seems to me that Capital is a key word. When I enter it in AB, it is not shown in bold characters. Is it a key word to set the initial risk capital? TIA. Clement
Hi,
From a help topic, Back-testing your trading ideas, it seems to me that Capital is a key word.
When I enter it in AB, it is not shown in bold characters. Is it a key word to set the initial risk capital?
TIA.
Clement