| stevehopwoodforex.com https://www.stevehopwoodforex.com/phpBB3/ Print view |
|
| Scalping New York https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=6189 |
Page 10 of 31 |
| Author: | sangratan [ Wed May 25, 2022 2:45 pm ] |
| Post subject: | Scalping New York |
I don't understand |
|
| Author: | TableTop [ Wed May 25, 2022 3:10 pm ] |
| Post subject: | Scalping New York |
Strange - could it be a data issue? I've found that if I get this type of issue and open each chart, and click on a few timeframes it seems to re-boot the data feed. I do have it working fine on 3 instances so I don't think it can be a code issue. |
|
| Author: | sangratan [ Wed May 25, 2022 3:23 pm ] |
| Post subject: | Scalping New York |
the strange thing is that yesterday the first version (with no BE and Closures ) worked perfectly |
|
| Author: | pivotter [ Wed May 25, 2022 3:27 pm ] |
| Post subject: | Scalping New York |
I think this is the reason for not opening: In testForAlreadyTradedThisHour() Add the last 3 lines to the code, the Ea wont open if it finds trades in the same hours in previous days for (int cc = OrdersHistoryTotal() - 1; cc >= 0; cc--) { if (!BetterOrderSelect(cc, SELECT_BY_POS, MODE_HISTORY) ) continue;//Shouldn't happen, but no harm in making sure if (TimeDay(OrderOpenTime()) != TimeDay(TimeLocal()))continue; if (TimeMonth(OrderOpenTime()) != TimeMonth(TimeLocal()))continue; if (TimeYear(OrderOpenTime()) != TimeYear(TimeLocal()))continue; |
|
| Author: | sangratan [ Wed May 25, 2022 3:58 pm ] |
| Post subject: | Scalping New York |
Wow...... you are a magician..... In these moments I wuold be a coder to understand how is it possible to fix .... wonderful many,many thanks I 'll look if all it's right in the first session thanks again |
|
| Author: | sangratan [ Wed May 25, 2022 4:45 pm ] |
| Post subject: | Scalping New York |
noooo, after closed the first TP it stop working and now I am not able to start it again grrrr |
|
| Author: | SteveHopwood [ Wed May 25, 2022 4:55 pm ] |
| Post subject: | Scalping New York |
The joy of free, open source coding. Thanks Ben. You are a star. I had not experienced this issue because I was only maintaining today's orders in my history tab. I have added Ben's fix and added the update to post 1. DIYers, do a search for: if (closeHour == hourBroker) Add this underneath the return(true);//Yes, so no more trading until a new H1 candle forms. command/statement: Code: Select all |
|
| Author: | sangratan [ Wed May 25, 2022 5:09 pm ] |
| Post subject: | Scalping New York |
:hi: :hi: :hi: It seems that it works without problems..... fingers crossed and silence .....I'll see going on thanks for your help |
|
| Author: | SteveHopwood [ Wed May 25, 2022 5:14 pm ] |
| Post subject: | Scalping New York |
The earlier bloops with BE and auto-close cost the demo just over $1,000. Since the fixes:
Are we onto something here? |
|
| Author: | SteveHopwood [ Wed May 25, 2022 5:17 pm ] |
| Post subject: | Scalping New York |
I am not ignoring this - let's get the basics correct first. |
|
| All times are UTC | Page 10 of 31 |
|
Powered by phpBB® Forum Software © phpBB Limited |
|