[ARCHIVE!] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Can't go anywhere without you - 4. - page 141
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
I forgot my password on Metatrader, how can I create a new one?
If you haven't deleted your email, see the terminal's tab "Mailbox" - Register a new account...
If you have deleted it, please contact your brokerage company.
If you have not deleted your mail, see the terminal's Mailbox - Register a new account...
If you have deleted it, contact your brokerage company's helpdesk.
I don't know exactly who to send it to, and what is a DC? It's a demo account, and I've been trading for 3 months and it's all gone down the drain.
the interesting thing is that there are no problems on the tester. It's been running since 2000 to date without draining.
maybe the code would help?
i.e. i have one main function here and the other two just duplicate it. Made it for insurance, but it still stops working
I think we check the last position opened, if it's +, we open.
If so, we should check like this.
like this.
Thanks, I cleared the mail, but in soprota to whom exactly to send, I do not understand at all, and what is DC?? it is a demo account, and 3 months of trading, all down the drain.
If it is a demo account, no one will take care of it. Start a new account. Do not wipe that line with the mail with the passwords to the trading account. DC is the dealing centre through which you trade.
extern double Lot=0.01;
extern bool Ustan_BuyStop=true;
extern bool Ustan_SellStop=true;
double Dist=10000.0;
string SMB;
double NewPrice,SL,TP;
int i,z;
int start()
{
RefreshRates();
SMB=Symbol();
if(Ustan_BuyStop || Ustan_SellStop) {UstanOtlozh();}
}
return(0);
void UstanOtlozh()
{
double OldPrice=WindowPriceOnDropped();
RefreshRates();
SMB=Symbol();
{
int i=1;
while(i<=OrdersTotal())
{
if (OrderSelect(i-1,SELECT_BY_POS)==true)
{
if (OrderSymbol()!= SMB) continue;
int Tip=OrderType();
if (Tip<2) continue;
double Price=OrderOpenPrice();
{
NewPrice=Price;
while(NewPrice<=Ask+300*Point||NewPrice>=Ask+20*Po int)
{
NewPrice=NewPrice+20*Point;
SL=NewPrice+20*Point;
TP=NewPrice+20*Point;
OrderSend(SMB,OP_BUYSTOP,Lot,NewPrice,3,SL,TP,NULL,0,CLR_NONE);
if(NewPrice>Ask+300*Point|||NewPrice<Ask+20*Point)
return;
}}
}
}
}
}
"+++++++++++++++++++++++++++++++++++++++++++ and display"
And learn to insert the code correctly. Your sheet is of no interest to anyone...
Read the whole thing here.
Yeah... sheet...
Found the fault myself. The function
void TRENDS(string name, int PER, int n, int X, int Y, color Lab_Trend_Bull, color Lab_Trend_Bear, color Lab_Trend_Doj, int rsm)
When I delete it, everything works. I don't know WHY it works ONLY on EURUSD????????
Yeah... sheet...
I found the point of failure myself. The function
void TRENDS(string name, int PER, int n, int X, int Y, color Lab_Trend_Bull, color Lab_Trend_Bear, color Lab_Trend_Doj, int rsm)
When I delete it, everything works. I don't know WHY it works ONLY on EURUSD????????
It's a magic pair, on which even crooked codes always work, so as to get the client down faster, at least on something... :-)
Another tricks of the World Consortium of Banks...
Hi all. Below is a rudimentary snippet of a program that I'm having trouble getting to the end of. I've got to make it check if there's another order at the same place (with the same price) and if there is, then skip it. Otherwise, it sets orders up to the set limits and then places them after the second or third round. If you set it to automatic, you have to set buy stop and you'll see the result. If anyone is able to finish this, please do not be lazy. When it works - reward sure!!!
extern double Lot=0.01;
extern bool Ustan_BuyStop=true;
extern bool Ustan_SellStop=true;
double Dist=10000.0;
string SMB;
double NewPrice,SL,TP;
int i,z;
int start()
{
RefreshRates();
SMB=Symbol();
if(Ustan_BuyStop || Ustan_SellStop) {UstanOtlozh();}
}
return(0);
void UstanOtlozh()
{
double OldPrice=WindowPriceOnDropped();
RefreshRates();
SMB=Symbol();
{
int i=1;
while(i<=OrdersTotal())
{
if (OrderSelect(i-1,SELECT_BY_POS)==true)
{
if (OrderSymbol()!= SMB) continue;
int Tip=OrderType();
if (Tip<2) continue;
double Price=OrderOpenPrice();
{
NewPrice=Price;
while(NewPrice<=Ask+300*Point||NewPrice>=Ask+20*Po int)
{
NewPrice=NewPrice+20*Point;
SL=NewPrice-20*Point;
TP=NewPrice+20*Point;
OrderSend(SMB,OP_BUYSTOP,Lot,NewPrice,3,SL,TP,NULL,0,CLR_NONE);
if(NewPrice>Ask+300*Point||NewPrice<Ask+20*Point)
return;
}}
}
}
}
}
when inserting code, use the "SRC" button in the toolbar that appears when inserting comments
try something like this ...
Can you tell me how to build an indicator using another indicator? For example I have a stochastic:
double sth=iStochastic(Symbol(),0,25,3,5,0,0,0,1);
How can I use it to build a bollinger?