| stevehopwoodforex.com https://www.stevehopwoodforex.com/phpBB3/ Print view |
|
| Holy Graily Bob's Candle Power https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=5272 |
Page 17 of 36 |
| Author: | SteveHopwood [ Sat Sep 30, 2017 9:17 pm ] |
| Post subject: | Holy Graily Bob's Candle Power |
Thanks Thomas. I understand. I do not approve but that is just tough because that is the way it is. You are an invaluable source of information yet again. |
|
| Author: | dreambig2 [ Sat Sep 30, 2017 10:28 pm ] |
| Post subject: | Holy Graily Bob's Candle Power |
Thx for all the information...don't understand yet of course but am going over it. :youknow: |
|
| Author: | SteveHopwood [ Sat Sep 30, 2017 11:05 pm ] |
| Post subject: | Holy Graily Bob's Candle Power |
Keep going over it. A decade ago, I had all that I now know still to learn. I was nobody. Look where I am now - a teensy bit of a somebody at least. Yet I am still learning. Who knows where you could be in a decade. Even better, learn the lessons available here at SHF and cut the process short by 9 years. Keep going, Tiger. |
|
| Author: | RisklessPips [ Sun Oct 01, 2017 5:18 am ] |
| Post subject: | Holy Graily Bob's Candle Power |
Don't want to turn CP into coders corner but can I ask is it good practice given the above to declare all variables to be used in any calculation as double and only change them to int if required for human consumption? Charles |
|
| Author: | renexxxx [ Sun Oct 01, 2017 6:05 am ] |
| Post subject: | Holy Graily Bob's Candle Power |
The good practice is to declare a variable as an int if it only ever needs to store integer values. As a programmer you know that. You can use integers in a calculation (including division), you just have to be aware that the result of that calculation will also be integer unless, (like Thomas explained) you typecast one or more of the components to a double, or you include a double constant or other double variables in the calculation. Similarly, you declare a variable as a double if you know that it can and will store double values. The word-length of integers is smaller than that of doubles, so there is also a (small) advantage of using integers if you don't need doubles. |
|
| Author: | RisklessPips [ Sun Oct 01, 2017 6:51 am ] |
| Post subject: | Holy Graily Bob's Candle Power |
The answer I knew was right but feared given idiosyncratic Empty4. Charles |
|
| Author: | tomele [ Sun Oct 01, 2017 9:41 am ] |
| Post subject: | Holy Graily Bob's Candle Power |
I totally agree with Rene. Additionally, you must keep something in mind: Floating point values are often "unprecise". A double value of 4.0 might not be the same as an integer value of 4. For this reason there is a function named CloseEnough() in the code. Steve explains its necessity very clear in his comment: So like Rene explained, stick to integer variables where you dont need floating point values. Otherwise you might introduce implications you dont really want. Cheers |
|
| Author: | SteveHopwood [ Sun Oct 01, 2017 2:02 pm ] |
| Post subject: | Holy Graily Bob's Candle Power |
Just to let you know folks, that I have updated 1f with Tommaso's enhanced pip factor code. The EA should work with pretty much every pair your broker offers. Thanks Tommaso. |
|
| Author: | szfxtrader [ Sun Oct 01, 2017 7:33 pm ] |
| Post subject: | Holy Graily Bob's Candle Power |
Thank you very much! |
|
| Author: | SteveHopwood [ Mon Oct 02, 2017 2:29 pm ] |
| Post subject: | Holy Graily Bob's Candle Power |
Attached is a new experimental version with a feature supplied by Richard. Here is the bulk of the pm he sent me by way of explanation: This seems like a pretty good idea to me, so many thanks Richard. Run it on demo for a couple of days folks. It can become V 1g once we know the code needs no modification. |
|
| All times are UTC | Page 17 of 36 |
|
Powered by phpBB® Forum Software © phpBB Limited |
|