Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.

bro lanunmerah, link download yg bro aiman bg dh tkleh pki trtm dri file 4shared..so bro kna copy paste coding ea yg bro aiman bt tu...paste dlm program 'notepad' yg ade dlm pc bro, kmdn bro save file tu, dh save...kmdn bro tukar/rename file tu, buang kod file .txt..cnttoh file - 'script martingle.txt',bro tukarla nma file kpd 'script martingle.mq4', nnti die akn automtik jdi script yg blh dgunapki utk execute msa trading..skadar pdgn je...

int StopLoss = 0;
int TakeProfit = 0;
[COLOR="Red"]extern [/COLOR]int StopLoss = 0;
[COLOR="red"]extern [/COLOR]int TakeProfit = 0;

save file ke folder scripts
http://dl.dropbox.com/u/35162850/Forex/Scripts/Aiman-Martingale_PO.mq4
SL dan TP saya hide,
kalau nak guna, cuma ubah 2 line bawah ni
Code:int StopLoss = 0; int TakeProfit = 0;
tambah extern kemudian re-compile
Code:[COLOR="Red"]extern [/COLOR]int StopLoss = 0; [COLOR="red"]extern [/COLOR]int TakeProfit = 0;

Salam.. tuan Aiman,
kalo scipt BUY & SELL All tu, kita set SL & TP leh ejas mcm nie leh x?![]()

nk tnya, msa mrket kencang dgn byk open post sdg floating, bla kt gna script close all order, die tk execute, adekh sbb kdaan mrket sgt aktif mmg tkleh nk close?adekh kna gna script close all yg ade value slippage sbgai cntoh 5 utk close post yg floating?sbb ade try pd demo akaun msa mrket stable ok je, mudah n sng n close, tpi bla msa mrket aktif, die tkmau mkn script la plak...nk kna close manual satu psatu...ke ade cra lain utk atsi msalh ni?
//+------------------------------------------------------------------+
//| SELL.mq4 |
//| Copyright © 2004, MetaQuotes Software Corp. |
//| http://www.metaquotes.net/ |
//+------------------------------------------------------------------+
#property copyright "Copyright © 2004, MetaQuotes Software Corp."
#property link "http://www.metaquotes.net/"
#include <stdlib.mqh>
#include <WinUser32.mqh>
extern double Lots=0.01;
//+------------------------------------------------------------------+
//| script "trading for all money" |
//+------------------------------------------------------------------+
int start()
{
//----
int ticket=OrderSend(Symbol(),OP_SELL,Lots,Bid,1,0,0,0,255,0,CLR_NONE);
if(ticket<10)
{
int error=GetLastError();
Print("Error = ",ErrorDescription(error));
return;
}
//----
OrderPrint();
return(0);
}
//+------------------------------------------------------------------+

//+------------------------------------------------------------------+
//| SELL.mq4 |
//| Copyright Š 2004, MetaQuotes Software Corp. |
//| http://www.metaquotes.net/ |
//+------------------------------------------------------------------+
#property copyright "Copyright Š 2004, MetaQuotes Software Corp."
#property link "http://www.metaquotes.net/"
#include <stdlib.mqh>
#include <WinUser32.mqh>
extern double Lots=0.01;
[COLOR="Red"] int StopLoss=10;
int TakeProfit=10;[/COLOR]
//+------------------------------------------------------------------+
//| script "trading for all money" |
//+------------------------------------------------------------------+
int start()
{
//----
[COLOR="red"]double sl,tp;
if (StopLoss>0) sl=Ask+StopLoss*Point;
else sl=0;
if (TakeProfit>0) tp=Bid-TakeProfit*Point;
else tp=0;[/COLOR]
int ticket=OrderSend(Symbol(),OP_SELL,Lots,Bid,1,[COLOR="red"]sl,tp[/COLOR],0,255,0,CLR_NONE);
if(ticket<10)
{
int error=GetLastError();
Print("Error = ",ErrorDescription(error));
return;
}
//----
OrderPrint();
return(0);
}
//+------------------------------------------------------------------+