12-16-2008, 01:35 PM
Junior Member
Join Date: Mar 2008
Posts: 26
help to fix this indicator
hi all ,, when i try to compile this indicator ,, this errors appears to me ,, could it be fix please
thanks
Attached Images
Attached Files
12-16-2008, 05:31 PM
Senior Member
Join Date: Oct 2008
Location: Vancouver, BC
Posts: 158
Quote:
Originally Posted by
zombie333
hi all ,, when i try to compile this indicator ,, this errors appears to me ,, could it be fix please
thanks
Don't worry, it's not errors, it's warnings only. They put the whole library in the indicator, but used the part only.
12-16-2008, 05:49 PM
Junior Member
Join Date: Mar 2008
Posts: 26
Quote:
Originally Posted by
Roger09
Don't worry, it's not errors, it's warnings only. They put the whole library in the indicator, but used the part only.
thank you roger for telling me what is that mean ,,,
but why it dosn't appear when i put it on chart ?
can you check it please ??
12-16-2008, 06:47 PM
Senior Member
Join Date: Oct 2008
Location: Vancouver, BC
Posts: 158
If you put it in tthe directory /experts/indicators and then compiled, restart your terminal and look at Navigator/Custom Indicators.
12-16-2008, 07:15 PM
Junior Member
Join Date: Mar 2008
Posts: 26
Quote:
Originally Posted by
Roger09
If you put it in tthe directory /experts/indicators and then compiled, restart your terminal and look at Navigator/Custom Indicators.
No roger ,, this what i mean ,,
12-16-2008, 08:09 PM
Senior Member
Join Date: Oct 2008
Location: Vancouver, BC
Posts: 158
When you start your indicator, should be allowed DLL imports.
Last edited by Roger09; 12-16-2008 at 08:26 PM .
12-16-2008, 08:44 PM
Junior Member
Join Date: Mar 2008
Posts: 26
Quote:
Originally Posted by
Roger09
When you start your indicator, should be allowed DLL imports.
thanks Roger
,, now it's work ,,
12-16-2008, 11:28 PM
Senior Member
Join Date: May 2006
Posts: 837
Quote:
Originally Posted by
luxinterior
Use the OrderReliable include file.
Lux
seems to be a bit missing on this for the OrderSendReliable function do you have a later version?
__________________
New to Forex? Get all you need for Free at my site
Click Here You can also get my Hot Forex System (scroll to the bottom of the page):
Click Here
12-20-2008, 02:00 AM
Junior Member
Join Date: Dec 2008
Posts: 1
How to use Time in calculations
I am new to MQL4 and was just trying to see if I could make a simple EA that would use some basic functions. I know C++ well but must be awful at MQL4 because I something is worng with this code and I think it has to do with the time functions or possibably the buy/sell functions, heres the code: ...and by the way this wasnt designed to make money just test the functions Thanks!
int start()
{
//----
double currenttimeN, currentvalue;
double timeM = TimeMinute (TimeCurrent());
double timeH = TimeHour(TimeCurrent());
currenttimeN = (timeH / 24) + (timeM / 1440);//gives the time of day as a percent or 1 (1 = one complete day) so always less than 1
currentvalue = Ask;
if (currentvalue > currenttimeN){
OrderSend(Symbol(),OP_SELL,1,Ask,3,Ask-25*Point,Ask+25*Point,"My order #2",16384,0,Green);
}
/* BUY COMMAND */
else if (currentvalue < currenttimeN){
OrderSend(Symbol(),OP_BUY,1,Ask,3,Ask-25*Point,Ask+25*Point,"My order #2",16384,0,Green);
}
//----
return(0);
}
12-20-2008, 08:00 PM
Senior Member
Join Date: Oct 2008
Location: Vancouver, BC
Posts: 158
Wrong string:
Code:
currenttimeN = (timeH / 24) + (timeM / 1440);//gives the time of day as a percent or 1 (1 = one complete day) so always less than 1
could be:
Code:
currenttimeN = (timeH *60 + timeM) / 1440;
How can you compare part of day and price?
Tags
#include , candle time , CHinGsMAroonCLK , code , coders guru , conditionally , dll , eli hayun , Eur_harvester.ex4 , expert adviser , expert advisor , forex , higher high , how to code , indicator , I_XO_A_H , kehedge , mechanical trading , metatrader command line , mt4 , MT4-LevelStop-Reverse , OrderReliable.mqh , programming , rectangle tool , trading , volty channel stop
Thread Tools
Display Modes
Linear Mode
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
How to code this?
iscuba11
Metatrader 4 mql 4 - Development course
1
08-03-2007 05:22 PM
All times are GMT. The time now is 12:42 AM .