Forex
Google
New signals service!

Go Back   Forex Trading > Programming > Metatrader Programming


Register in Forex TSD!
Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time).
Click here to register and get more information

Reply
 
LinkBack (1) Thread Tools Display Modes
  #931 (permalink)  
Old 05-17-2008, 06:53 PM
Junior Member
 
Join Date: May 2008
Posts: 26
payback is on a distinguished road
michel you are very kind and i've understood what you wrote, but still not working, and i really don't understand why.....

i've declared IndicatorName1= "braintrend1"

ok....

and then
PHP Code:
 BuyValueCurrent iCustom(NULL,0,IndicatorName1,NumBars,0,0,1,1);  // braintrend1 
where enablealerts=0 and signalid= 0

i tried and tried also with only the condition braintrend1stop>0 and still having fuzzy results..... it makes me really worry!!!!

can u help me out???

here is the code i ve started to modify, can u peek at it and say why it s so wrong???
Attached Files
File Type: mq4 Icarus.mq4 (27.3 KB, 4 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #932 (permalink)  
Old 05-17-2008, 10:52 PM
Senior Member
 
Join Date: Feb 2007
Posts: 849
FerruFx is on a distinguished road
Quote:
Originally Posted by clarc View Post
i'm not a programmer, thats why its nearly impossible for me to do such changes
It's 1 of the reasons that this forum exists. Thanks.

FerruFx
__________________
THE HEART of FOREX & THE PROBABILITY METER - Trade with 100% confidence and ... Stress Less!!!
Coding services: Experts Advisors, indicators, alerts, etc ... more info by PM
NEW: video presentation of the Probability Meter ... 24hrs action on the website
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #933 (permalink)  
Old 05-19-2008, 04:26 AM
Member
 
Join Date: Oct 2006
Posts: 69
Big Be is on a distinguished road
payback

Hey payback,
How about a little study?
In MetaEditor, click the book.
Type in the term you want.
Study what it gives you.
And study EAs that do work.

Ain't no shortcuts if you want success here.

Big Be
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #934 (permalink)  
Old 05-19-2008, 04:55 AM
Junior Member
 
Join Date: Apr 2008
Posts: 3
forexbachok is on a distinguished road
Price + London time + breakout PO

Hey. i need some one to code this EA

a breakout strategy which show buy and sell position..(PO order)

Example:

Let say the current price for GJ is 203.00 on london time
automatically the EA will run and post signal 204.00 for buy and 202.00 for sell (with stoploss 50pip)

same to if price open 200.00 on london time and the indicator will show 2001.00 for buy and 199.00 for sell...

Please code this kind of indicator,,

Regards
Forexbachok
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #935 (permalink)  
Old 05-19-2008, 02:22 PM
clarc's Avatar
Junior Member
 
Join Date: May 2006
Posts: 17
clarc is on a distinguished road
Quote:
Originally Posted by forexbachok View Post
Hey. i need some one to code this EA

a breakout strategy which show buy and sell position..(PO order)

Example:

Let say the current price for GJ is 203.00 on london time
automatically the EA will run and post signal 204.00 for buy and 202.00 for sell (with stoploss 50pip)

same to if price open 200.00 on london time and the indicator will show 2001.00 for buy and 199.00 for sell...

Please code this kind of indicator,,

Regards
Forexbachok
look for "daily 95 pips" - i think this EA does what you want ...


Question:
is it possible to get a comment into the EA ? i wanna see in the end of the week which EA does what on my statement...

thank you for the help

@FerruFx - is it possible to get an EA with a moneymanagment strategy (multi-entry and multi-exit-conditions) from you ? (price...?)

greetz

clarc
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #936 (permalink)  
Old 05-20-2008, 12:55 AM
Senior Member
 
Join Date: Feb 2007
Posts: 849
FerruFx is on a distinguished road
Quote:
Originally Posted by clarc View Post
@FerruFx - is it possible to get an EA with a moneymanagment strategy (multi-entry and multi-exit-conditions) from you ? (price...?)
PM sent.

FerruFx
__________________
THE HEART of FOREX & THE PROBABILITY METER - Trade with 100% confidence and ... Stress Less!!!
Coding services: Experts Advisors, indicators, alerts, etc ... more info by PM
NEW: video presentation of the Probability Meter ... 24hrs action on the website
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #937 (permalink)  
Old 05-20-2008, 07:44 AM
Junior Member
 
Join Date: Jul 2007
Posts: 19
KuPretMan is on a distinguished road
pls help me.....
how to code... scan profit or floating in one OP....

exampel :
buy GU 1.9567... price go to 1.9547 that mean -20pip
if -20pip... then OP SELL tp 20.... after sell TP... close buy GU 1.9567...
thats all...... thks...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #938 (permalink)  
Old 05-20-2008, 09:40 AM
Senior Member
 
Join Date: May 2006
Posts: 147
waltini is on a distinguished road
KuPretMan

Have a look at these two EA's.
Attached Files
File Type: mq4 Martingale.mq4 (2.6 KB, 4 views)
File Type: mq4 MasterMartingaleOriginal.mq4 (6.3 KB, 5 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #939 (permalink)  
Old 05-20-2008, 10:57 AM
Junior Member
 
Join Date: Dec 2006
Posts: 16
OxiG is on a distinguished road
move tp and sl...

hello, i need some help regarding the mt4 programming, hope friends in here can help me...
----------

Int StopLoss = 20;
// 1st ticket
OrderSend(Symbol(),OP_BUY,Lot,Ask,3,Ask-StopLoss*Point,Ask+15*Point,
“buy”,MagicNumber,0,Aqua);OrderTime = Time[0];

// 2nd ticket
OrderSend(Symbol(),OP_BUY,Lot,Ask,3,Ask-StopLoss*Point,Ask+30*Point,
“buy”,MagicNumber,0,Aqua);OrderTime = Time[0];

// 3rd ticket
OrderSend(Symbol(),OP_BUY,Lot,Ask,3,Ask-StopLoss*Point,Ask+100*Point,
“buy”,MagicNumber,0,Aqua);OrderTime = Time[0];


--------
Let say from above programming, three tickets were open in a same time,
1. If 1st ticket profit, how to add program/modify StopLoss for 2nd and 3rd ticket at open price?
2. If 2nd ticket profit, how to add program/modify StopLoss for 3rd ticket at 1st target profit?
3. How to program to calculate the profit of all ticket after the trades are closed?
__________________
--------------
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #940 (permalink)  
Old 05-20-2008, 10:12 PM
Junior Member
 
Join Date: Oct 2006
Posts: 24
natsirte is on a distinguished road
how to include a file.txt in an mq4 file ??

Hi everybody



I've got a file (var.txt) with some variables



//************var.txt*********************//

double high_d1 = iHigh(NULL, PERIOD_D1, Current + 0);
double low_d1 = iLow(NULL, PERIOD_D1, Current + 0);
double highp1_d1 = iHigh(NULL, PERIOD_D1, Current + 1);
double lowp1_d1 = iLow(NULL, PERIOD_D1, Current + 1);



double sto14 = iStochastic(NULL, 0, 14, 3, 5, MODE_EMA, 0, MODE_MAIN, Current + 0);
double sto14s = iStochastic(NULL, 0, 14, 3, 5, MODE_EMA, 0, MODE_SIGNAL, Current + 0);


double sar = iSAR(NULL, 0, 0.02, 0.2, Current + 0);
double open = iOpen(NULL, 0, Current + 0);
double close = iClose(NULL, 0, Current + 0);



//*******************************//



and I want to put this file in an mq4 file (test.mq4) with the fonction "include" like this



#include <var.txt>



But the programm return this message : " #include <var.txt> cannot open the programm file"

Is it possible to do that ? and how?



Thanks in advance for your help!!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Tags
CHinGsMAroonCLK, I_XO_A_H

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

LinkBacks (?)
LinkBack to this Thread: http://www.forex-tsd.com/metatrader-programming/554-how-code.html
Posted By For Type Date
Need an experienced programmer? - Page 2 Post #0 Refback 09-24-2008 06:24 AM

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to code this? iscuba11 Metatrader 4 mql 4 - Development course 1 08-03-2007 04:22 PM


All times are GMT. The time now is 01:33 AM.



Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.