Hi,
I try o hack some lines for Buy/Sell-scripts which will return the Pipdistance from current price (as of pressing "OK" in the script property window) to the next round number below price & next round number above price.
Round Numbers should be all 000 and all 500.. That is on 6digit broker..
Calculation should also work on 5-digit pairs/brokers.
So what I need is to subtract current price - "last price (only look below) ending with 500"
...same inversed for the Buy-script
or sth like that..
But it has to take into account the 5digit/6digit thing and also has to evaluate which is the next below lying round price (000 or 500).
I have a seperate Sell & Buy script, so the script will know if it has to look above or below current price..
Do you understand what I want? Do you programmers have some code snippets which will help here?
Thank you for that, Lowen
I try o hack some lines for Buy/Sell-scripts which will return the Pipdistance from current price (as of pressing "OK" in the script property window) to the next round number below price & next round number above price.
Round Numbers should be all 000 and all 500.. That is on 6digit broker..
Calculation should also work on 5-digit pairs/brokers.
So what I need is to subtract current price - "last price (only look below) ending with 500"
...same inversed for the Buy-script
or sth like that..
But it has to take into account the 5digit/6digit thing and also has to evaluate which is the next below lying round price (000 or 500).
I have a seperate Sell & Buy script, so the script will know if it has to look above or below current price..
Do you understand what I want? Do you programmers have some code snippets which will help here?
Thank you for that, Lowen