Forum

Can you generate a switch like mechanism using bools on an indictor ?

I am struggling to generate a switch using booleans. Essentially if(UPTREND) { Up=true Down=false } if(DOWNTREND) { Down=true Up=false } So when market UPTRENDED based on criteria Up=true Down=false This would only change when DOWNTREND criteria were met and so on. Currently i seem to be only able

Obtain offline status with CHART_IS_OFFLINE but can it be modified ?

I can collect the offline status of a chart using: int offline= ChartGetInteger ( 0 , CHART_IS_OFFLINE ); Print (offline); If a chart is offline it is stored as a 1 if the offline box in the offline chart properties is unticked it is stored as 0. However is there a way to modify the offline variable

Attaching a Quicktime player recording in freelance chat ???

Can this be done it keeps coming up invalid file format ? Thanks

Possible to pull prices from TradingView on to MT4 ?

Hi, Does anyone know if it is possible to pull prices from tradingview into an array on MT4 using mql4 ? I know there is a WebRequest function in mql4 but not sure if that would be able to do things such as above ? Thanks :)

Add consecutive candle volume. Is there code for this already ?

Hi, Does anyone know of code floating around that adds consecutive candle volume if they are the same colour. Eg. Green(volume), Green(Volume+previous volume), Green(Volume+previous+previous), Red(Volume), Red(Volume+Previous). Then plot them like the standard volume chart on mt4 ? I have had a look

Array within if statement using bars, Time and iHighest to find Highs between 2 points. Can't figure out where i am going wrong ?

Hey i've been having some trouble getting this to work was wondering if anyone could give me some tips ? Im basically just trying to figure out how to mark two points and then find the highest or lowest bars between them. So far i have something like this for highest point. if (*insert if

Trying to get an Array working

Hey, Ive been trying to get an array working for a while and keep coming back to it after moving on too finish other things. Im simply wanting to store a fractal high/low value in it. I only need 3 stored so i can identify a change in trend so when the middle fractal is higher than the other two

Anyone know why ordersend won't work ?

void start() { int i= 0 ,nCountedBars; //i=0 added instead of just i, in order to get rid of warning when under an EA template bool bFound; double dCurrent; nCountedBars= IndicatorCounted (); //---- last counted bar will be recounted if (nCountedBars<= 2 ) i= Bars

expression has no effect error ? for loop and array

Hey, I have been trying to get my head around for loops in order to store data in an array. a = (Current> High [i+ 1 ] && Current> High [i- 1 ]); for (a;!a;a++) { High_Array[h]=Current; } // So Current is = High[i] // int a; //double High_Array[]; ^^^^^^^These have all be

Editing the iFractals function

Hey, Is it possible to edit the iFractals function . It returns previous values based only on 5 candle tops and bottoms. 2 lower candles either side of high. Can it be edited to return a previous fractal value of this with 3,4 or 5 candles either side of the fractal ? My suspicion is as it is a