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

RE: [amibroker] Indicator parameters



PureBytes Links

Trading Reference Links

I use different parameters for different futures. Since there are only a few
futures I trade with, I use the following simple method:

 

x_ticker                        =          Name();

 

//         Default values for unknown tickers.

x_decimal                     =          0.0;

x_TimeInForce              =          "DAY";

            .

if (StrLeft(x_ticker,3)    =="ES")

            {

            x_decimal                     =          0.2;

            x_TimeInForce              =          "DAY";

            ..

            }

else if (StrLeft(x_ticker,2)=="6E")

            {

            x_decimal                     =          0.4;

            x_TimeInForce              =          "DAY";

            ..

else if (StrLeft(x_ticker,2)=="6E")

            ..

            

Well, when you change to a new ticker, remember to Reset All. Unfortunately,
your modified parameters will be reset. If you stick to a parameter for a
particular stock, then, change it to default parameter in codes for that
stock.

 

Clement

 

 

 

 

 

 

  _____  

From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf
Of brhelpdesk
Sent: Saturday, July 15, 2006 5:55 AM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Indicator parameters

 

I use different Indicator parameters for each symbol (like periods). 
Is it possible to maintain the parameters for each symbol?