Forum

Sorting Arrays

I am use to coding in AS3. Is there an equivalent of ".pop", ".push", ".name", or "(substr)" functionality for array items? i am trying to create two arrays. First an array of closing prices, and the second an array of int variables which is the index numbers of the in the first array. Then I want

Expert Advisors and Indicators

I have an indicator that uses an onTick () event for one currency pair . I am trying to use that indicator on one currency pair that use on onTick event to trigger a trade for another currency pair. Does the onTick event work in an EA attached to a different currency pair

Trading Decisions for EA based on Variables of Indicators

I have created an indicator with several double type variables. The values are based off math calculations of pricing information. I want to be able to create trading situations based on the value of those variables in the indicator I created. Do I have to create a separate indicator for each

Variable or function for iHigh?

Are the iHigh or iLow functions or variables? I have charted the high minus the low for a currency using an array. ExtMapBuffer1[i]=High[i]-Low[i]; What I am attempting to do is take the 5 minute high for the EUR_USD and subtract the 5 minute low for the JPY_usd. With this in mind I have made the

Proper Syntax for Currency in an Array

I am charting the difference of two arrays of two currencies. One is of the high of one currency and the other is for the low of another currency. for example I have : ExtMapBuffer1[i]=High[i]-Low[i]; What is the best way to directly state, I want to use an array of the High [i] for the EUR_USD and

Using iMA for variables

I am trying to chart the moving average of a variable I have called "eqb" Can I use the iMA to say: double eqb; ExtMapBuffer1[i]=iMA(NULL,0,35,0,MODE_SMMA,eqb,i); What is the best way to do this without manually computing this

Expert Advisers - Different Time Frames, Different Cross Rates

What are the limitations with MT4's Expert Advisers? Can you create an EA that trades a 5 minute chart of the EUR/USD based upon custom indicators or scripts from a 1 hour chart of the EUR/GBP

Close Orders on MT4

I have created a trading system that is used on relatively short time frames (1M, 5M) for scalping. The problem I have having is the buy and sell indicators are based on current OHLC data. As the currency crosses the buy/sell indicators for trading, it might fluctuate before it finally breaks out

Simple Custom Indicators using Math.

I am having a hard time trying to create a custom indicator by using math functions. I am trying to create a simple indicator that charts the median (H+L/2) price for each time period and then graph the line. I can not find any examples of indicators that does this simple function or any other

Function Placement

I am writing a simple custom indicator that is simply going to plot a line of the (high - close)/3. I have created the following: double H=high double L=low double x= H-L/3 I have three questions: 1.) Where do I place the I have been placing the variable at the top and get an error message about