I'm trying to add some external var so i can change the colors on the indicator lines. #property indicator_chart_window #property indicator_buffers 5 #property indicator_color1 Black #property indicator_color2 Blue #property indicator_color3 Red
I have this indicator on my chart to show me CCI divergence. What I want to do is grap the signal from the indicator into an EA and then for now just give me an alert so I can see the EA has got the signal. For some reason i'm not allowed to show the
Why don’t we make a template for an EA with code for handling 4/5 digits brokers and some code to handle the ECN/STP brokers issue, so newbies like me and others can use that every time we want to create a new EA. It will save a lot time for
I have an OCO EA where it doesn't take the trade because it seems that price containg to many digits. Error in the 'Journal' tab: 'invalid price 1.59805567 for order send function' (i'm using 5 digit broker) Here is the code that should send the
I have created a script where i can 'grab' date, time within a certain periode of time and then write all the data into a file and that part works fine. I'm also interested to get the price and the value of e.g. CCI(14) and write that to the file
Hi, I have this code below and it gives me an alert every minute. That works fine, but it also gives me an alert when i attach it to a chart and the first tick come in and i don't want that. How can i avoid that first alert? #include
I have tried with this code below but it doesn't seem to work. Also tried with just +2 doesn't work eather. if (High[i] > High[i+ 1 ]+ 0.0002 ) //2 pips { some code } //if
Can anyone point me to some code that shows how to "grab" candlestik informations and compare two candles on two different currency pair ? Here is what is want to do. Let say i have a candle @ 10:00am on the GBPUSD. I want to be able to
I have the following code: double RangeSize = High[ 1 ] - Low[ 1 ]; Comment ( "Range = " + RangeSize) It shows 0.00099000 If i want it to show it in pips (like 9.9pips) . How can i do that? What is the correct if-sentence if i want to ask if
I have the following code below, but i cannot get to work. Can anyone see what's wrong? Everytime we have a new bar i want an alert to pop up if it's an inside bar, but it pop up evertime we have a new bar and not only when we have aninside bar
I have been looking for some info about iHigh, iLow, iOpen & iClose , but i can't find anything other than samples. Can someone tell me or point me to some information on how it works? Thanks
How can i look for a specific price pattern in multi time frames? It's how to make the code so it looks for my pattern in M5, M15, M30 .... that's my problem. Thanks
Hi Guys, What is the best way to determine the trend? Looking at the 50, 100 or 200EMA? And if so how much should it angeling up/down before we can say it's a trend? Or are there other smarter ways to find out the trend? Thanks for your reply in
I would like to have a dot on my screen everytime a specific pattern is reached. I can see that something like this could be used: SetIndexArrow(2, 251); // cross code in Wingdings But i'm sure i need more code than this one line
How should the line be if i want to say: If Bar1 >= 0 and Bar1 <= 0.0004 - just an example I have tried with this but it doesn't work. Compile error if (Bar1 > 0 || Bar1 == 0) && (Bar1 < 0.0004 || Bar1 == 0.0004) Have tried this
I have a script that gets some data from each bar on a chart and it should save the data into a file, but it doesn't work. Can you see what's missing in the code? The script can be downloaded here: http://bit.ly/cR37IY Thank for your reply in
I want to make a script that gets the value for 50EMA, 100EMA and the current price for each bar.(e.g. M30) So i have made this code to pick up the values: double x55EMA = iMA(NULL, NULL,55,0,MODE_EMA,PRICE_CLOSE,0); double x100EMA = iMA(NULL