Codes

Bollinger Percent B for MetaTrader 5

This is Bollinger Bands %b indicator for MetaTrader 5

Forum

period seperator time

hi Is there a way to get current timeframe period seperator i mean for example i am in 1 hour period i can see some lines on the chart that named " period seperator " i want that time

How to define a refrence variable ?

Hi I have a question may be so simple but i have problem : I want to access some variable by refrence . suppose we have a class : class CLayer{ ... } and a class class CNetwork{ private : CLayer *m_layers[]; public : .... void getout( double val); } void CNetwork::getout( double val) { .... unsigned

variables that keep their value between client starts

hi I am working on the indicator that based on the user clicks.every yhing works fine but when the terminal cient closed and restarts again the user clicked data are gone and must do it again. I want to make something like metatrader tools (fibo tool ro channels or ..) that keep their current values

is it possible to return an array from a function ?

and one important question: is it possible to return an array from a function . for example : struct Layer{ ...some stuf... } class CNet{ private : Layer m_layers[]; public : . . //I want a getter function for m_layers const Layer[]& getLayers( const Layer& layers[]) const ; } //and function

oop in mql5

Hi i am trying to write an EA in mql5 but oop dont work example : ///////////////////////////// ////////////// bpnn.mq5 ///// ///////////////////////////// #include "Network.mqh" CNetwork *bpnnOBJ; int Handle= INVALID_HANDLE ; int OnInit () { bpnnOBJ= new CNetwork(); //--- create timer

c++ vector like array

Hi I'm working on a mql5 program and need arrays like std::vector of c++ for example in my c++ code i have something like this: class Neuron; typedef std::vector<Neuron> Layer; class net{ private : std::vector<Layer> m_layers; //m_layers[layer_num][neuronum] } how can i implement this in mql5

CIndicators* indicators

hi I am new to EA writing using standard library and have some questions: 1. I looked at some code and saw that for creating signals from some indicators they act like this: bool CSampleSignal::InitIndicators(CIndicators* indicators) { //--- Validation of the pointer if (indicators== NULL )

drawing tools

hi I want to make some drawing tool like with two or tree points is it best solution to use an indicator

mouse move

hi I want to knowif there is a way to change the color of the candle that mouse is on it. some thing like mouse hover

chart event

Hi I wana know that is there a way to get the bar properties of the clicked position on the chart ? I mean i want to click on a position on chart and for example the date of clicked position returned. thanks