PHP Code:
//---- input parameters
extern bool UseTakeProfit=true; //Gives user the option to use a take profit goal
extern double TakeProfit=20.0; //Specifies the take profit goal
extern bool UseStopLoss=true; //Gives user the option to use a stop loss
extern double StopLoss=20.0; //Specifies Stop Loss
extern bool UseTrailingStop=true; //Gives user the option to use a trailing stop
extern double TrailingStop=20.0; //Specifies Trailing Stop
extern int ShortMA=2; //Specifies short moving average used with moving average cross
extern int LongMA=5; //Specifies long moving average used with moving average cross
extern bool UseImmediateTrade=false; //Gives user the option to enter trade immediately before next ma cross
extern bool UseReversal=false; //Gives user the option to use a reversal strategy based on a specified reversal condition
extern bool UseConfirmedEntry=true; //Gives user the option to use a number of subsequent bar periods to confirm entry signal
extern int Confirmationbars=1; //Specifies the number of bars to confirm entry signal
extern double Lots=1.0; //Specifies how many lots to trade in orders
extern bool UseMoneyManagement=true; //Gives user the option to use money management risk/order scaling
extern int PercentRisk=10; //Specifies the percentage of risk to assume in money management
extern bool UseCustomTimeframe=false; //Gives user the option to execute orders from signals on custom bar interval periods
extern int CustomTimeframe=10; //Specifies the custom bar interval period
extern bool UseLossRecovery=true; //Gives user the option to use basket loss recovery strategy- this uses additional positiions to pool into a basket which closes when the pool equity returns to break even
extern int Basketsize=5; //Specifies the number of additional positions allowed to open to assist in loss recovery of a losing position
extern bool UseLotScaling=true; //Gives user the option to use lot scaling when opening positions
extern double GoalDirectionScaling=100.0; //Specifies the percentage of the lot value to use for orders in the direction of the signal
extern double HedgedDirectionScaling=50.0; //Specifies the percentage of the lot value to use for orders hedging against the direction fo the signal
extern bool UseManualCloseAll=true; //Gives user the option to use a double hotkey manual close all trades function
extern string CloseAllHotkey1="z"; //Specifies the first hotkey for the close all trades function
extern string CloseAllHotkey2="y"; //Specifies the second hotkey for the close all trades function (used for confirmation)
extern bool UseActiveHour=false; //Gives user the option to engage the market during specified hours and standy idle during specified hours
extern double TradehourStart1=0.0; //Specifies the first session daily hour to start trading
extern double Standby1=14.0; //Specifies the first session daily hour to go on standby
extern double TradehourStart2=16.0; //Specifies the second session daily hour to start trading
extern double Standby2=22.0; //Specifies the second session daily hour to go to standby
extern double TradehourStart3; //Specifies the third session daily hour to start trading
extern double Standby3; //Specifies the third session daily hour to go to standby
extern bool UseStopScaling=false; //Gives use the option to scale stop losses
extern double StopScale1=30.0; //Specifies the pips to reduce the stop loss at the first scaling level
extern double StopScale2=60.0; //Specifies the pips to reduce the stop loss at the second scaling level
extern double TrailScale1=30.0; //Specifies the pips to reduce the trailing stop loss at the first scaling level
extern double TrailScale2=60.0; //Specifies the pips to reduce the trailing stop loss at the second scaling level
extern bool UseMACDfilter=false; //Gives use the option to engage a MACD parameter as an additional condition for order entry
extern int MacdShort=3; //Specifies the short period moving average for the macd filter
extern int MacdLong=11; //Specivies the long period moving average for the macd filter
extern int MacdSignal=2; //Specivies the signal averaging line period for the macd filter
extern bool UseStochFilter=false; //Gives user the option to engage a stochasitc parameter as an additional condition for order entry
extern double Kline=0.0; //Specifies the %K of the stochastic filter
extern double PercentD; //Specifies the %D of the stochastic filter
extern int StochBars; //Specifies the number of bars to use for the stochastic filter
extern bool UseReverse=false; //Gives user the option to use a reversal method based on a reversal condition
extern int ReverseCondition=1; //Specifies if the reversal condition is met or not (1=reverse; 0=do not reverse)
hey wow cool i just learned how to post alot of code and wrap php brackets around it
