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

 
Roman.:

I haven't specified it myself...:-) but perhaps here the author wants to turn a bouncing TS into a punching TS...:-) and that's it.
Ahh...! Looked in the visualizer, and decided to do a reverse on the drawdown areas? Sorry, but my first thought would have been to change Limit to Stop.
 
Roman.:
Changing the entry conditions to take into account the ask, bid, etc. of all trading requirements and organising is not difficult - example.
No, of course there is nothing complicated, will these entry conditions be consistent with all the requirements in the current signal, who knows?
 
snail09:
... Excuse me, but my first thought would have been to change Limit to Stop.
I don't know what the author wanted...:-)
 

People help, there is an EA opening positions in both directions at once, i need it to open in the same direction as profit after one of the orders triggered, i need it to continue opening in the same direction. The algorithm to determine which position is left is correct but when compiling this EA gives out an error '{' - expression on global scope not allowed and points to the first parenthesis........

{
if (int trade = OrdersTotal() - 1; trade >= 0; trade--)
if(OrderSelect(trade, SELECT_BY_POS))
if (OrderType() == OP_BUY && OrderType() == OP_SELL)break;
{
if (OrderType() == OP_BUY) {
ticket = OpenPendingOrder(OP_SELL, iLots, EAName + "-" + total);}
if (OrderType() == OP_SELL){
ticket = OpenPendingOrder(OP_BUY, iLots, EAName + "-" + total);}
}

}

 
snail09:
No, it's certainly not complicated, will these entry conditions be consistent with all the requirements under the current signal, hmmm?

Yes, I think it is all very individual here, i.e. it depends on the specific strategy.
 
Roman.:
I don't know what the author wanted...:-)
That's what I mean, the author attached the whole code and estimated that his line-by-line analysis would arouse great public interest.8-(
 
snail09:
Well, I mean, the author attached the whole code and estimated that his line-by-line analysis will arouse great interest of the public.8-(


There is a link to an example - let him draw some semblance, the main thing is the approach is indicated, if the author means exactly such a content of his question ...:-)

Because we're already discussing for the second page and he (the author) isn't here... But judging by his questions from page 316 (I didn't dig further) - it won't be easy for him to translate the answer to his question into code...

 
Pinki:

People help, there is an EA that opens positions in both directions at once, i need it to open in the same direction in which i got profit after one of the orders triggered, i need it to keep opening in the same direction. The algorithm to determine which position is left is correct but when compiling this EA gives out an error '{' - expression on global scope not allowed and points to the first parenthesis........

{
if (int trade = OrdersTotal() - 1; trade >= 0; trade--)
if (OrderSelect(trade, SELECT_BY_POS))
if (OrderType() == OP_BUY && OrderType() == OP_SELL)break;
{
if (OrderType() == OP_BUY) {
ticket = OpenPendingOrder(OP_SELL, iLots, EAName + "-" + total);}
if (OrderType() == OP_SELL){
ticket = OpenPendingOrder(OP_BUY, iLots, EAName + "-" + total);}
}

}

Either count all the left brackets, then all the right brackets, then compare the quantities, or comment on the functions one by one until you find the error. Everyone's taste and colour(source codedesign ) is different.
 
Roman.:


There is a link to an example - let him make some semblance, the main thing is the approach, if the author means exactly such content of his question...:-)

Because we're already discussing for the second page and he (the author) isn't here... But judging by his questions from page 316 (I didn't dig further) - it won't be easy for him to translate the answer to his question into code...

Inet probably at work, or maybe excused. I think I've already started to flood.
 

Who can explain why the 6th order did not open on the candlestick and what to do to make it open?

Log.

2011.11.04 19:42:21 1999.11.04 20:00 RLB_FLAT GBPUSD,H4: open #7 sell stop 0.10 GBPUSD at 1.62233 sl: 1.64443 tp: 1.57089 ok
2011.11.04 19:42:21 1999.11.04 20:00 Tester: #6 deleted due expiration
2011.11.04 19:42:10 1999.11.04 12:00 RLB_FLAT GBPUSD,H4: open #6 sell stop 0.10 GBPUSD at 1.63373 sl: 1.64570 tp: 1.62652 ok
2011.11.04 19:42:09 1999.11.04 08:00 Tester: #5 deleted due expiration
2011.11.04 19:42:06 1999.11.04 00:00 RLB_FLAT GBPUSD,H4: open #5 sell stop 0.10 GBPUSD at 1.63622 sl: 1.64702 tp: 1.63411 ok
2011.11.04 19:42:00 1999.11.02 04:00 Tester: #4 deleted due expiration
2011.11.04 19:41:53 1999.11.01 20:00 RLB_FLAT GBPUSD,H4: open #4 sell stop 0.10 GBPUSD at 1.63365 sl: 1.64917 tp: 1.61097 ok