inquisiteur / Publications
Forum
connecting to MT4 with DDE & C++
Hi all, I am coding an interface in C++ and ncurses. I simply need to connect to MT4 through DDE, retrieve market prices (ex EURUSD ) that I will be storing into arrays and make an analysis realtime. On the DDE side the only resource I have is the MSDN, but i'm getting lost in all the bits and
Help maybe facing a bug with partial positions closing with OrderClose()
Ok, before start posting chunks of code maybe someone already experiencied this issue: When I have 1 lot LONG position opened, I selected the position via a ticketnumber, then pass it on to : OrderClose(ticketBuy,1,Bid,2,Red); Now, if it is one lot, and I tell OrderClose() to close 1 lot all happens
if High[1]>Low[1]...
That's it I am dumb.¨ I still can figure out how to write in MQL5 if High [ 1 ] > Low [ 1 ] Ok there is a "porting table", but I want to write that in MQL5 language without using some retrocompatilibty workaround. Read a bit on the subject, unfortunately still cant figure out how to write this
High[1] & High[iHighest(NULL,0,MODE_HIGH,x,1)]
Dear All, First I appologize if this question has been answered thouroughly somewhere else in the forum, but I have read anything I could found on that and still lost. If somone could just tell me how to write in MQL5: (in MQL4 ) If High[ 1 ]>High[ 2 ] then ... and the formula for finding
Having the strategy trade only once between 4 & 6 PM
Hi, I wasted like 5 hours in a row trying to find out how to have the system open and close a position only ONCE whitin a time interval, example from 4 to 6 PM if the condition is met. Tried many pieces of code, I have herebelow what I believe could be the key, but I am feeling that I will waste
small code to check / need your help / tracing rectangle at predefined hours
Hi, I am trying to create a simple indicator. Everyday at 12 am I want the the system to draw a rectangle from the low of 11 am to the high of 3 pm. I am stuck honestly as nothing is appearing on my screen, can somone give me a short insight on what I could be doing wrong ? Many thanks in advance
Intraday Momentum Indicator (IMI)
Hi, Sry looks like my previous message didnt show up. I am looking for the Intraday Momentum Indicator for MT4. So far found it on Metastock and VTtrader, but not luck for MT4 ( I am not advertising, I love MT4) The code in VTtrader is: IMI_diff : = C - O ; IMI_UpSum : = if ( Smoothing = 0 , mov (
Auto Draw rectangle from HIGH 10:00 AM candle to LOW 11 AM candle everyday.
Hi there, I am trying something simple: To draw on the 10:00 AM candle a rectangle spanning from the High of the first candle to the Low of the second (@ 11:00 AM). I am using the below code, but not working, no rectangle is appearing - cod below
Creating a cloud between two lines (or a High and a Low)
Hi there, I just need somone to point me out on how I could create a cloud between a candle high and low. By cloud I mean to color horzontally up to a specific timezone the space between the high and the low. I need to know at least what function I should look for. Can anyone help a bit ? Thx
"while" loop - indicator not tracing on last bar
Hi, My problem is simple. I am using the following loop for computing my indicator. while(i>=0) { i--; CODE HERE } Now, If i go to the MetaEditor and compile again the indicator, it shifts the 500 period forward and compute the next live bar I see, but it does it once of course. So my