| stevehopwoodforex.com https://www.stevehopwoodforex.com/phpBB3/ Print view |
|
| Coding help https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=3824 |
Page 1 of 1 |
| Author: | crashout [ Fri Sep 05, 2014 7:42 am ] |
| Post subject: | Coding help |
Hello all, I made a step ma expert with the help of steve's shell (vey brilliant work). I use this : Code: Select all If the price touch the stepma it enters in the way of the stepma color. Thanks ! |
|
| Author: | Lowphat [ Sat Sep 06, 2014 7:45 am ] |
| Post subject: | Coding help |
i remember in late 2005 early 2006 when he wrote 6.2 stepma i asked Igorad if there was an easy way to add up/dn percentage deviation to it(adding 2 on chart to make channels) and a few days later he added percent to 6.3. you may want color mode set to "1" otherwise you would only have one color and you mention setting it in the direction of the color. if the above is true then you will be working with 2 buffers not one. I'm guessing SetIndexBuffer(1,UpBuffer); SetIndexBuffer(2,DnBuffer); so i would imagine 5,StepMaBarToTest ); would be actually be ... ,1,StepMaBarToTest ); // up color ... ,2,StepMaBarToTest ); // dn color and previous bar can be ... ,1,StepMaBarToTest +1 ); // up color previous ... ,2,StepMaBarToTest +1 ); // dn color previous so in theory you might could if price >= current_UPbuffer or maybe if price < previous_UPbuffer && price > current_UPbuffer I really don't know for sure as I haven't messed with it in a long time. |
|
| Author: | crashout [ Sun Sep 07, 2014 9:04 am ] |
| Post subject: | Coding help |
Thank you Lowphat i will try that. |
|
| Author: | crashout [ Mon Sep 08, 2014 7:05 am ] |
| Post subject: | Coding help |
Thanks Lowphat, your logic is working Now i just need a litlle help : If i want to wait a candle close, can i use Close[0] like this : Code: Select all |
|
| Author: | Lowphat [ Mon Sep 08, 2014 12:28 pm ] |
| Post subject: | Coding help |
you can probably use Close[1] to confirm a closed bar. you will want to stay away from using Close[0] as it would be the same thing as using Bid. bar 0 really doesn't close because a new 0 bar forms the same time one closes. so perhaps Close[1] < Previous_UP_Buffer or current if you wanted to confirm bar close before setting your bool |
|
| Author: | crashout [ Thu Sep 11, 2014 9:16 am ] |
| Post subject: | Coding help |
After days of work, it finally works. Thank you Lowphat ! I have to add a buffer because of bad coding indicator, but it works ! |
|
| Author: | Lowphat [ Thu Sep 11, 2014 9:44 am ] |
| Post subject: | Coding help |
i'm glad you got it working the way you wanted |
|
| Author: | thegatan [ Thu Oct 16, 2014 7:00 am ] |
| Post subject: | Coding help |
hello friend, i need help for some modification from standart bollinger band with detail like picture: the value is from london open or could be set time, and display from any of pair, only print the value on london open/set time server, if could print yesterday value to beside |
|
| All times are UTC | Page 1 of 1 |
|
Powered by phpBB® Forum Software © phpBB Limited |
|