[WARNING CLOSED!] Any newbie question, so as not to clutter up the forum. Professionals, don't go by. Can't go anywhere without you. - page 92
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Gentlemen. how to make H4 trading take into account H1 bars ? for example if(......&& Close[0](H1 bar)>High[1](H1 bar) ???????????
Use iClose() and iHigh() - you can set an arbitrary timeframe in these functions
#property indicator_separate_window
#property indicator_buffers 1
extern int FastMA=3;
extern int SlowMA=25;
double Buffer1[];
double Buffer2[];
int init()
{
SetIndexBuffer(0,Buffer1);
SetIndexBuffer(1,Buffer2);
return(0);
}
int start()
{
int limit,counted_bars;
counted_bars=IndicatorCounted(); //counted_bars=Bars-1
if(counted_bars>0) counted_bars--; //??? counted_bars=Bars-1-1
limit=Bars-counted_bars; //лимит теперь равен двум
for(int i=0; i<limit; i++){
Buffer2[i]=MathAbs(Close[i]-Open[i]);
}
for(i=0; i<limit; i++){
Buffer1[i]=Buffer2[i]*(-1);
}
}
I can't understand why the assignment of one buffer to another is not correct (the result of Buffer1 doesn't output in the indicator window)...
SetIndexStyle(0,DRAW_LINE); is missing for the drawing buffer, and IndicatorBuffers(2) for the calculation buffer;
Hello Experts.
I made an EA which only closes open orders!(semi-automatic trading).
Closing rules: The main close goes to the price channel, if it breaks 1 point up close SHELL,
If 1 point down closing BAY. In addition, the insurance breakeven a few points at a certain distance.
I have a question if i have done everything correctly, is the code correct!!!?
Found the error. really missed the BUY close.
at least the compilation has been completed without errors.
a very "simple" question: how do you calculate the price of 1 (one) open index lot in the deposit currency?
Example: yesterday i opened 1 lot nikkei the price at the time of opening was 9400 pips. question: how do i know how much money was 9400 (NOT the deposit! namely the price of the lot) in the deposit currency at the time of opening?
a very "simple" question: how do you calculate the price of 1 (one) open index lot in the deposit currency?
Example: yesterday i opened 1 lot nikkei the price at the time of opening was 9400 pips. my question is: how do i know how much money 9400 was (NOT the deposit! namely the price of the lot) in the deposit currency at the time of opening?
i>MarketInfo() will not help with this parameter.