Download MetaTrader 5
To add comments, please log in or register
Install apps from the library right in MetaTrader. It is easy!
abdullah karayel
17
abdullah karayel 2011.03.06 02:48 
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

Thanks guys!




APeng
359
APeng 2011.03.06 03:25  

Hi akaryel42!

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?

Greetings,

APeng.

abdullah karayel
17
abdullah karayel 2011.03.06 03:39  
APeng:

Hi akaryel42!

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?

Greetings,

APeng.


Yes I can post some history stats but now, I cant. Because you know trading is close know, I can post it on monday, APeng, thanks for your reply...
whroeder1
13627
whroeder1 2011.03.06 16:31  
akarayel42:
But I don't know anything about codes. Can anybody convert the .act strategy file to mt4 ea?
No slaves here, either learn to code or pay someone.
abdullah karayel
17
abdullah karayel 2011.03.07 16:13  
APeng:

Hi akaryel42!

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?

Greetings,

APeng.

I did the backtest, you can watch here, thanks...


Youtube Link
>
APeng
359
APeng 2011.03.07 18:45  

Hey akarayel42,

I wrote you a PM, check out your messages (top right of the page, when you are logged in in this forum)

Matthias
4
Matthias 2015.03.04 16:20  

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

Matthias
4
Matthias 2015.03.04 16:21  
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


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 pips
end;

// this procedure runs when a new candle opens
procedure OnNewCandle;
begin
Point := 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 list
procedure OnOrderChange(const Action: TDataModificationType; const Order: TOrder);
begin
//output the order information into the log
if (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 list
procedure OnTradeChange(const Action: TDataModificationType; const Trade: TTrade);
begin
// if a new trade opened
if Action=dmtInsert then
  begin
  // output the corresponding message into the log
  if Trade.Tag='EntryStopBuy' then log('Entry Stop Buy order executed');
  end;
end;

Carl Schreiber
5953
Carl Schreiber 2015.03.04 17:24  
Please edit your post and put your code in the SRC-button-window!
whroeder1
13627
whroeder1 2015.03.04 17:32  
Matz1966: I have a please, is there a way Act script in MQL4 convert.
  1. Don't paste code
    Play video
    Please edit your post.
    For large amounts of code, attach it.

  2. You have only three choices: Search for it, learn to code it, or pay someone. We're not going to code it FOR you. We are willing to HELP you when you post your attempt (using SRC) and the nature of your problem.
/
To add comments, please log in or register