Forum

Indicator That Highlights Price Range In Color

Is there any indicator that can highlight price range in color ? Say I know that price 1.3200 till price 1.3220 is a support range. I would like to highlight the whole horizontal price range in yellow color, for instance, rather than putting one horizontal line at each price level. Price: 1.3230

MQL5: Variable Expected Error

I'm trying to write a money management class in mql5. (Its a library actually). Here it is: class MoneyManagement { private : double max_pos_mgn_set = 2 ; double max_use_mgn_set = 5 ; double current_balance = AccountInfoDouble(ACCOUNT_BALANCE); double margin_used

iHighest iLowest Clarification

Assume 3 bars: Bar [2], Bar [1] and Bar [0] (Current). Is the following "stop_low()" function correct to find the lowest low of bar [2] and [3] ? double stop_low = iLowest(Symbol(),0,1,2,1); ------------------------------------------------------------ Reference: int iLowest ( string symbol, int

Trade Management Strategies

Anyone know any good trade management STRATEGIES or scripts like those that insure maximum profitability and good risk management to minimize risk ? For example, once a position is is in profit for 10 pips, half the position is closed, the stop loss is moved to break even, and the other half is let

Example needed.

Take a price, for example 1.4322 (For most pairs) or 121.97 (for Yen Pairs). How do you write a function with two inputs of price that returns price values to the nearest zero? Example: 1.4322 as 1.4320 (realize the last digit is zero) and 121.97 to 122.00. I used this function, but it did not work

Better Pivot Points, S/R - Rounded Up To Zeros

Modified a pivot point indicator to round up the value to give a better value at the nearest zero. Just my share, if anybody is looking 4 it. Gives a better pivot point rather just a random number from a calculation because key levels usually end with a zero or two zeros. This indicator gives you

Wrong parameters count error.

int init ( ) { } int deinit ( ) { } int BarsCount = 0 ; bool openlong ( ) { //Write open LONG TRADE conditions here. } bool openshort ( ) { //Write open SHORT TRADE conditions here. } bool closelong ( ) { //Write close LONG TRADE conditions here. } bool closeshort ( ) {

Compiler problem or code problem ?

extern int ma1period = 5 ; extern int ma1method = 1 ; extern int ma1tf = 0 ; extern int ma2period = 5 ; extern int ma2method = 1 ; extern int ma2tf = 10080 ; extern double lots = 1 ; int init ( ) { } int deinit ( ) { } double CMA ( int tf , int period , int shift , int method ) { double MA =

Support Needed - Moving Average EA

Moving Average EA Logic: - Always in market and holding trade based on prevailing trend. - Check for signal once per new bar. ** I think this is not working. (See attached picture of backtest) - Signal triggered if Closing Price of Previous Bar crosses the 5 EMA in the opposite direction. - Action