Hi and, first of all, thank you for listening me. Sorry about my mistakes, my English isn't very well.
I am using Act Forex platform. It has a strategy system like MT4 EA's. I have a act forex strategy which works great on Gold, and Silver M30 candlesticks. It is really profitable. But now, actually all brokers using MT4 platform. I want to use my strategy on MT4. But I don't know anything about codes. Can anybody convert the .act strategy file to mt4 ea? If he can, we will benefit from it.
You can download the strategy from here: http://www.actfx.com/Attachment246.aspx
Looks like the strategy trades depending on bollinger band. That should not be complecated to translate for MT. The only thing I wonder about is that a strategy that depends just on one single indicator works well. Can you post some history stats?
But I don't know anything about codes. Can anybody convert the .act strategy file to mt4 ea?
I did the backtest, you can watch here, thanks...
I wrote you a PM, check out your messages (top right of the page, when you are logged in in this forum)
I apologize for my bad English. I have a please, is there a way Act script in MQL4 convert. I want this skipt on the MT4 testing. Best regards and thanks
Best regards and thanks
const StrategyName = 'Entry OrdersBuy';var //declaration of the variables History: TCandleHistory; Account: TAccount; Amount, Point: Double; ESPrice: Integer; Stop, Limit: Integer; // this procedure runs before the start of the strategy (click on the button 'Run')procedure OnCreate;begin AddCandleHistorySetting(@History, 'Candle History', '', CI_1_Minute, 200); //setting up the chart history History.OnNewCandleEvent := @OnNewCandle; //indicating the procedure to run when a new candle opens AddAccountSetting(@Account, 'Account', ''); //the account number AddFloatSetting(@Amount, 'Amount(Lots)', 2); //the number of lots AddIntegerSetting(@ESPrice, 'Entry Stop Distance Buy', 20); //setting up entry limit distance in pips AddIntegerSetting(@Stop, 'Stop', 15); //setting up stop in pips AddIntegerSetting(@Limit, 'Limit', 25); //setting up limit in pipsend;// this procedure runs when a new candle opensprocedure OnNewCandle;beginPoint := History.Instrument.PointSize;// if the close price of the last candle is higher than the close price of the previous one,if History.Last(1).Close>History.Last(2).Close then begin // place an entry limit buy order and an entry stop sell order CreateEntryOrder(History.Instrument, Account, Amount, bsBuy, History.Instrument.Buy + ESPrice*Point, History.Instrument.Sell + ESPrice*Point-Stop*Point, History.Instrument.Sell + ESPrice*Point+Limit*Point, otEStop,'EntryStopBuy'); end; end;// this procedure runs when some changes occur in the Orders listprocedure OnOrderChange(const Action: TDataModificationType; const Order: TOrder);begin//output the order information into the logif (Action=dmtInsert) and (Order.OrderType=otStop) and (Order.Tag='EntryStopBuy') then begin log('Entry Stop Buy order placed'); log('Instrument: ' +Order.Instrument.Name); log('Account: ' +Order.Account.ID); log('Amount: ' +FloatToStr(Order.Amount)); log('Order rate: ' +FloatToStr(Order.Rate)); end; end;// this procedure runs when some changes occur in the Open Positions listprocedure OnTradeChange(const Action: TDataModificationType; const Trade: TTrade);begin// if a new trade openedif Action=dmtInsert then begin // output the corresponding message into the log if Trade.Tag='EntryStopBuy' then log('Entry Stop Buy order executed'); end;end;
To add comments, please log in or register