[ARCHIVE] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 3. - page 281

 
snail09:
Well, don't, so don't. If your expert is not in control of his orders, so what is he doing anyway? ...Trading in a tester?
No, of course, everything is on the demo. Try to insert it into any Expert Advisor on the demo and it will exclude weekends from the calculation. Thanks anyway for the ideas!
 

Can you give detailed instructions on how to download quotes for MICEX for 2 years, for example Lukoil, finam does not give - says too long period, and

How to properly convert them and open them in mt4, if there are any links, please give me the links how to do this.

P.S. Thanks in advance.

 

Good afternoon.

Can you please share the link to an article describing how to write the results of virtual trades to an array or file?

The idea is that the indicator doesn't perform real trades, but just records information what would happen if these trades were performed.

I'm currently facing the task of writing such a thing, but I was wondering if someone has already implemented it.

It would be interesting to read.

Thanks in advance.

 
nuan:

Can you give me detailed instructions on how to download quotes for MICEX for 2 years, for example for Lukoil, but finam does not let me download them - it says the period is too long, and

how to convert them and open in mt4, if you have any links, please give me references how to do it.

P.S. I thank you in advance.

Download in parts, then merge in Notepad into a single file. Download it in .csv format and then import it into the appropriate timeframe in the quote archive, then import the other timeframes using periodconvertor script and then import the corresponding .hst files into the quote archive.
 
Please advise how to fix an EA, e.g. standard Moving Averages, to turn it into a script in order to run it on a non-standard timeframe.
 
ZZEROXXXXX can you upload the quotes already collected?
 
nuan:
ZZEROXXXX can you upload the quotes already collected somewhere?

No, I don't.
 

Help me figure this out. I can't figure out where:

1. The formula in Parabolic. I want to tweak it a bit.

2.I also need to know where the new coordinate is set when the price crosses the parabolic.

Thank you!

void SaveLastReverse(int last,int dir,double start,double low,double high,double ep,double sar)
{
save_lastreverse=last;
save_dirlong=dir;
save_start=start;
save_last_low=low;
save_last_high=high;
save_ep=ep;
save_sar=sar;
}
//+------------------------------------------------------------------+
//| Parabolic Sell And Reverse system |
//+------------------------------------------------------------------+
int start()
{
static bool first=true;
bool dirlong;
double start,last_high,last_low;
double ep,sar,price_low,price_high,price;
int i,counted_bars=IndicatorCounted();
//----
if(Bars<3) return(0);
//---- initial settings
i=Bars-2;
if(counted_bars==0 || first)
{
first=false;
dirlong=true;
start=Step;
last_high=-10000000.0;
last_low=10000000.0;
while(i>0)
{
save_lastreverse=i;
price_low=Low[i];
if(last_low>price_low) last_low=price_low;
price_high=High[i];
if(last_high<price_high) last_high=price_high;
if(price_high>High[i+1] && price_low>Low[i+1]) break;
if(price_high<High[i+1] && price_low<Low[i+1]) { dirlong=false; break; }
i--;
}
//---- initial zero
int k=i;
while(k<Bars)
{
SarBuffer[k]=0.0;
k++;
}
//---- check further
if(dirlong) { SarBuffer[i]=Low[i+1]; ep=High[i]; }
else { SarBuffer[i]=High[i+1]; ep=Low[i]; }
i--;
}
else
{
i=save_lastreverse;
start=save_start;
dirlong=save_dirlong;
last_high=save_last_high;
last_low=save_last_low;
ep=save_ep;
sar=save_sar;
}
//----
while(i>=0)
{
price_low=Low[i];
price_high=High[i];
//--- check for reverse
if(dirlong && price_low<SarBuffer[i+1])
{
SaveLastReverse(i,true,start,price_low,last_high,ep,sar);
start=Step; dirlong=false;
ep=price_low; last_low=price_low;
SarBuffer[i]=last_high;
i--;
continue;
}
if(!dirlong && price_high>SarBuffer[i+1])
{
SaveLastReverse(i,false,start,last_low,price_high,ep,sar);
start=Step; dirlong=true;
ep=price_high; last_high=price_high;
SarBuffer[i]=last_low;
i--;
continue;
}
//---
price=SarBuffer[i+1];
sar=price+start*(ep-price);
if(dirlong)
{
if(ep<price_high && (start+Step)<=Maximum) start+=Step;
if(price_high<High[i+1] && i==Bars-2) sar=SarBuffer[i+1];

price=Low[i+1];
if(sar>price) sar=price;
price=Low[i+2];
if(sar>price) sar=price;
if(sar>price_low)
{
SaveLastReverse(i,true,start,price_low,last_high,ep,sar);
start=Step; dirlong=false; ep=price_low;
last_low=price_low;
SarBuffer[i]=last_high;
i--;
continue;
}
if(ep<price_high) { last_high=price_high; ep=price_high; }
}
else
{
if(ep>price_low && (start+Step)<=Maximum) start+=Step;
if(price_low<Low[i+1] && i==Bars-2) sar=SarBuffer[i+1];

price=High[i+1];
if(sar<price) sar=price;
price=High[i+2];
if(sar<price) sar=price;
if(sar<price_high)
{
SaveLastReverse(i,false,start,last_low,price_high,ep,sar);
start=Step; dirlong=true; ep=price_high;
last_high=price_high;
SarBuffer[i]=last_low;
i--;
continue;
}
if(ep>price_low) { last_low=price_low; ep=price_low; }
}
SarBuffer[i]=sar;
i--;
}

/* Edited by the moderator (Vinin)*/

 
nuan:
ZZEROXXXXX can you upload the quotes already collected somewhere?


There's a few years' worth of mamba here.

http://zalil.ru/31909547
 
it's in the built-in mt advisors