Excuse me. I search this option, I saw that option. You resolved for me, thank you.
Posts made by blanko
-
RE: trailing stop (each trade) only type orderposted in Questions & Answers
-
trailing stop (each trade) only type orderposted in Questions & Answers
I want to aply trailing stop, only trade type sell or only trades type buy, I don´t see the option inside the block, it is posible with other block in combination with this block?
-
Open second trade, each 5 pipsposted in Questions & Answers
I want to open a trade to -10 pips from the last trade opened using the "pip-away from open price" block, exactly when last trade were loosing 10 pips. This new trade will be closed before the first one. After this happens, I want to open the second trade again at -15 pips distance if at "pip away" field I create this formula Pips_To_Trade_Third+(-1times_close_35), whe Pips_To_Trade_Third is a constant -10 pips value and times_close_3 is a variable value that adds 1 pip each time it closes the second trade, it will go giving me back -15, -20, -25,...
-
RE: check profit (unrealized) as money total sumposted in Questions & Answers
I try to say, IIf I have two loosing trades, each one loosing 5 dollars and one winning trade, on the opposite direction (if two first trades are BUY TRADES, the third one would be a SELL TRADE) with 20 dollars in the money, the three ones opened at the very same moment. Will it close all the three trades with 10 dollars profit?
-
check profit (unrealized) as money total sumposted in Questions & Answers
This block it is posible return money if
I have 2 buy open trade loss -5€ and -5€
i have 1 sell open trade gain 20€this block return 10€ profit unrealized?
-
RE: Create custom block?posted in Questions & Answers
I explain other form, excuse my bad english.
In block 177, I try update variables, but no update, What did I do wrong? Variables always 0, I show variable with comment block
https://fxdreema.com/shared/LPgRRDA5b -
RE: Create custom block?posted in Questions & Answers
In comment block, I put trade close, don´t work, it is posible, I haven´t same pre block, for use this information?
-
RE: Create custom block?posted in Questions & Answers
New version
https://fxdreema.com/shared/4gOK5oQE
on Trade tab, block 181. I try create message for coment block id 38, in update stats block I try update varible+1, when close each type trades. The values always 0, what does i wrong?Level 3 I try open oposite trades a open trade level 1 and open trade level 2, very soon i show finish.
-
RE: Create custom block?posted in Questions & Answers
thank you, I make correction now, It very easy, but I don´t know negative numbers.
-
RE: Create custom block?posted in Questions & Answers
Thank, I make the corrections. For now I disabled helding. I have new dude.
https://fxdreema.com/shared/C7ORRhFXcI pretend open second trader the same type a first trade, if prive go loss profit the X pip, in this case 70pip.
Example:
level 1: open trade eurusd, 5m, price: 1.06700, type: buy with lot: 0.01
when price is 1.06000 level 2 activate and open other type buy order with lot 0.03
when profit the trade level 1 and trade level 2 it positive, more or less 1.06500 close level 1 trade in loss , and level 2 trade in profit.but pip away from open price block, I think do diference, it active when price up, no when price down in this example, how I repair this code?
-
RE: field Comment to Sell now blockposted in Questions & Answers
Perfect Reply. I wanted it exactly.
Question Resolved. I implement to my EA, en INIT tab, never change.
Thank you. -
RE: Profit calculationposted in Questions & Answers
Thank you. Perfect, I would this.
Question Resolved -
RE: Create custom block?posted in Questions & Answers
What did I do wrong?
No open trades.
https://fxdreema.com/shared/fii7scMJd -
field Comment to Sell now blockposted in Questions & Answers
It is posible, put this text in comment field the sell or buy block
Period: period() , Magic: MagicNUMBER
I know to put one variable, but I don´t know same variable inside the same field and text, all together.
-
RE: Create custom block?posted in Questions & Answers
Thank miro1360 for your work. You read, understand my function and modificate, Your example is perfect for me. You make very work for this response. Excuxe my English, but I am very grateful.
-
Profit calculationposted in Questions & Answers
Profit money have posibility to calculate profit and swap combinate?
-
Create custom block?posted in Questions & Answers
I read some about custom block in foum, but how create one function return true o false and recieve constant params?
bool RSISellCheck(int Loc)
{
double RSIMain = iRSI(Symbol(),0,RSIPeriod,PRICE_CLOSE,Loc);
if(RSIMain < 50) return(false);
for(int x=Loc;x<=Loc+2;x++)
{
if(High[x]>High[Loc])return(false);
}
for(int y=Loc+4;y<(Loc+CandlesBack);y++)
{
if(High[y]>High[Loc]) break;
int s=y;
for(int z=y-2;z<=y+2;z++)
{
if(High[z]>High[y]){y++; break;}
}
if(s!=y){y--; continue;}
bool OB=false;
for(int k=Loc;k<=y;k++)
{
double RSIOB = iRSI(Symbol(),0,RSIPeriod,PRICE_CLOSE,k);
if(RSIOB>70) {OB=true; break;}
}
if(OB==false) continue;
double Mom1=iMomentum(Symbol(),0,MomentumPeriod,PRICE_CLOSE,Loc);
double Mom2=iMomentum(Symbol(),0,MomentumPeriod,PRICE_CLOSE,y);
if(Mom1>Mom2) continue;
LastKDS=y;
return(true);
}
return(false);
} -
Loop bar emaposted in Questions & Answers
It is posible conver this qml4 to fxdrema
int Barras = 400
for(int i=1; i<=Barras+1; i++) {
double EMA200value = NormalizeDouble( iMA(NULL,0,MovingPeriod,MovingShift,MODE_EMA,PRICE_MEDIAN,i) ,5);if (EMA200value <= High[i] && EMA200value >= Low[i]) {