| / | Forum |
|
|
|
Individual Psychology of a Trader A portrait of a trader's behavior on the financial market. Author's own menu from the book "Как играть и выигрывать на бирже" ("How to speculate on stock exchange and win") by A. Elder. |
|
|
Paladin1998 wrote: Hi Paladin1998,Hi everyone! Have enclosed .mq4 file for a plotting Pivot Points. It has one serious problem in that on Monday it plots the pivots just based on the partial days data from Sunday evening when the forex markets reopen. This invariably means that the Pivots on your chart on Monday are effectrively worthless as they are all scrunched together! Can anyone adjust the code so that for Monday the Pivots plotted ignore the partial days data from Sunday evening? i.e. effectively for plotting Mondays pivots it needs to capture the data from Fridays data BUT then including the partial days(Sunday) data too, like Friday is effectively just a longer day. Cheers for your help! Dave I had the very same problem you describe here, so I made a little adjustment to the Pivot Lines indicator I had been using. I am sending you the modified version. See the IgnoreSunday option in the inputs. It basically checks what day it is before getting yesterday's data and if it is Monday, it gets data from Friday. Take care, Jan |
|
|
Jan,
Thank you for your program on daily pivots. I used the same pivot calculator as you but had to enter the data into a spreadsheet each moring and then adjust the horisontal lines each morning - a very cumbersome task indead.
This is my first MQL4 program download that work by accident or good programming.
Do you perhaps have a program whereby one could set alerts on indicators - for example if stochastic and rsi are both above 80?
Kind regards,
Joubert Smit
joubertsmit@gmail.com
|
|
|
Hi Dave, I use this in my daily pivot code to bypass this problem : for(int i=0; i<limit; i++) { Works quite well. Hope it can help you, Bye, François |
Have enclosed .mq4 file for a plotting Pivot Points.
It has one serious problem in that on Monday it plots the pivots just based on the partial days data from Sunday evening when the forex markets reopen. This invariably means that the Pivots on your chart on Monday are effectrively worthless as they are all scrunched together!
Can anyone adjust the code so that for Monday the Pivots plotted ignore the partial days data from Sunday evening? i.e. effectively for plotting Mondays pivots it needs to capture the data from Fridays data BUT then including the partial days(Sunday) data too, like Friday is effectively just a longer day.
Cheers for your help!
Dave