for first question that might be icustom problem.
search Grabbuffer.mq4 on google you should able to find.
for first question that might be icustom problem.search Grabbuffer.mq4 on google you should able to find.
WOW never knew this was possible ..
I coded it into my Semi Automated EA and it works, one problem though there are two arrows in the custom indicator that does not show up in the buffer, will have to find a way to let the EA know when lines cross, the trend has changed and must close open order and open order in direction of the arrow.
still scratching me head on that one but thanks for the direction you pointed me into it was a huge jump forward
The inicator has twop linbe and i get those values from the buffer
Red and green
If red is less than green it is a sell, if green is less than red its buy
During the drawing they eventually cross each other
was thinking in the VB way of doing it:
Declare few variables like:
CurrentTrend=""
OrderTrend = ""
DownTrend = Down
Uptrend = Up
When lines cross (either red less than green OR green less than red ) check if the current is set to either Up or Down
If it has no value then set it to Up or Down because the user probably just opened the MT4 so it has no value yet ... it waits for lines to cross then assigns value of Up or down, then starts trading
If the Order trend is same as Current trend then do nothing (that shows lines have not crossed yet) if it is different close ticket and open new order in direction of CurrentTrend
to set order trend it should use if red less than green or green less than red
something like that ...
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
i was thinking over the last week the startegy i use works, it needs a little speeding up, click click click takes toe long - i have over the weekend decided to also add another indicator to my list of signals to trade.
I started writing an EA, i use a custom indicator that draws two lines and then an arrow if the lines cross and the candle is complete in that direction.
my problem is that i need to get the results of the indicator to my EA, seen what most people did but i dont understand one thing
When NINA (my one indicator not my gf) shows me an up arrow i display a message Buy or down would be sell, this works becuase of the alert
the iCustom= (blah blah,"NINA",blah blah ) when i add this to me EA i get nothing, Is there a place that could explain what each thing in that string means.
I have two lets say "declared variables" (i code VB/PHP/ASP sorry for terms used) that the NINA gives back to me like this:
and thats the time the EA shloud fire the comman
if the signal is buy then ....
OrderSend(Symbol(),OP_BUY,0.1,Ask,10,Ask-2000*Point,Ask+30*Point,"Buy Order",16384,0,Green);
for sell the same thing ... my EA works on Williams Indicator but i want to add custom indicator to it, beware dont just use code below it is work in progress..
any help or point to where the help is would be much appreciated![Smile](https://c.mql5.com/smilies/smile.gif)
Thanks for a great forum ! you guys rock !