BTC USD 61,059.6 Gold USD 4,272.40
Time now: Jun 1, 12:00 AM

Belajar Coding EA (mql) asas

Salam..

Aku ada pelik la dgn Bolingger Band ni..

BBandHigh = iBands("GBPUSD",PERIOD_H1,20,2,0,PRICE_LOW,MODE_UPPER,0);
BBandLow = iBands("GBPUSD",PERIOD_H1,20,2,0,PRICE_HIGH,MODE_LOWER,0);

Bila buat EA..

dia tk post tepat atas line atas atau bawah tu...

ada sape2 pnah pakai ni..?



Uploaded with ImageShack.us
 
Last edited:
Salam tt,

mcamana nk buat EA yg boleh detect close price candle sebelumnya? ianya untuk compare dengan open price candle yang baru.

cth mcmni:

if {
open_price_new_candle > close_price_previous_candle {
// keluar popup ("lebih besar")
** else if {
open_price_new_candle < close_price_previous_candle {
// keluar popup ("lebih kecil")
**
**

atau ada masta2 yg blh tolong
 
bro aiman leh tlg adjust x script buy & sell ni supaya leh guna kat 5decimal broker?

buy


sell

sape leh tlg adjust script ni aku xleh compile la kluar error
 
kalau kita backtest ea, apa hasil yg kita harapkan dalam report yg mengatakan ea tu bagus?

contoh,yg bar hijau tu,kita expect bar hijau tu panjang or pendek..gtula..

tunjuk ajar ku sifu ^^,
 
Tread ni dh tutup kot...
salam bro, cemana nak ubah ea ni supaya open order cuma satu je? setting lain cantik dah cuma dia op non stop.

//+------------------------------------------------------------------+
//| JMBUYERv2.mq4 |
//| Copyright © 2008, PRMQuotes Software Corp. |
//| [email protected] |
//+------------------------------------------------------------------+
#property copyright "Copyright © 2008, PRMQuotes Software Corp."

#include <stdlib.mqh>
#include <WinUser32.mqh>

//+----------------------------------------------------------------------+
//| To modify Lotsize of script change value listed here, right now |
//| its set to 1.0 change that value if you desire different lotsize |
//| I have found that it is important to keep the decimal in place, |
//| but really dont know why yet, but fractional lots work too (ex... |
//| 0.1, 0.3, 1.12), you get the picture. |
//| AGAIN DONT FORGET TO SAVE AND COMPILE AFTER MAKING ANY MODIFICATIONS |
//+----------------------------------------------------------------------+
extern double Lots = 0.10; // change this number to change the lotsize
extern double stoploss = 100; // change this number to change the stoploss
extern double takeprofit = 100; // change this number to change the takeprofit

//+---Don't forget to save and compile after changing the Lotsize--------+

//+------------------------------------------------------------------+
//| Each of the following lines produces an individual order |
//| 3 lines produces 3 orders, to increase or decrease the number |
//| of individual orders either add, or take away identical lines |
//| within the parenthesis. Again dont forget to save and compile |
//| time you modify the code. |
//+------------------------------------------------------------------+
int start()
{
OrderSend(Symbol(),OP_BUY,Lots,Ask,3,Bid-stoploss*Point,Bid+takeprofit*Point,"JMBUYER",0,0,CLR_NONE);
OrderSend(Symbol(),OP_BUY,Lots,Ask,3,Bid-stoploss*Point,Bid+takeprofit*Point,"JMBUYER",0,0,CLR_NONE);
OrderSend(Symbol(),OP_BUY,Lots,Ask,3,Bid-stoploss*Point,Bid+takeprofit*Point,"JMBUYER",0,0,CLR_NONE);
OrderSend(Symbol(),OP_BUY,Lots,Ask,3,Bid-stoploss*Point,Bid+takeprofit*Point,"JMBUYER",0,0,CLR_NONE);
OrderSend(Symbol(),OP_BUY,Lots,Ask,3,Bid-stoploss*Point,Bid+takeprofit*Point,"JMBUYER",0,0,CLR_NONE);

**

//+------------------------------------------------------------------+
//+------------------------------------------------------------------+
 

Live Forex Chart

Currency
Rates
EUR / USD
1.15553
USD / JPY
160.226
GBP / USD
1.33875
USD / CHF
0.79716
USD / CAD
1.39585
EUR / JPY
185.145
AUD / USD
0.70275
Back
Top
Log in Register