Daily Average Indicator - page 5

 
The_Snowman:
I know there are some really in depth dashboard displays around, but I am just looking for a simple display of the Average Daily Range for the last 7 days (or this could be adjustable) - any suggestions? it is used to compute stop loss and take profit levels as a percentage, so I guess that function as a display on screen would be very helpful also, thanks, John

I took the TSR Daily Range by Ogeima and CJA and I've added the feature to manually change the range.

 

thanks

Linuxser:
I took the TSR Daily Range by Ogeima and CJA and I've added the feature to manually change the range.

Thanks for that, I will see if I can work it out

 

Script for high and low in a specific perdiod

Hi all,

I'm looking for a simple script that do the following :

I specify a time range like form 10/02/2009 09.00 to 10/02/2009 09.32

and a cross like EUR/USD

the script 've to respond me : in the range form 10/02/2009 09.00 to 10/02/2009 09.32 the high was 1.29224 and the low was 1.28775

Please help me, I'm not able to program it myself.

Netmastro

 

Need some help w Indi

My trading partner and I are looking for a certain indicator.

I do not know if any of you are familiar with Proact Traders, but they call this certain tool there HSI Tool. What it does is it plots targets for you. You can click on a hi or a low and tell it if you are a buyer or seller and it plots your targets for you.

We have everything else figured out to duplicate there trading platform, which costs 200 per month, all we have left is this one tool any help would be great.

This tool is a Horizontal trend line tool. If this does not exist if there were, any coders that wanted to take on this project let me know and I will get the points that this plots. Thanks again.

 

hi

I think HSI means Horizontal Situation Indicators , you can try to googling it

===================

Forex Indicators Collection

 

i did google it and i got a lot of info on how it works i am looking for a downloadable verson of this tool, or a open source of this tool so we can modify it to work for our system

 

Also Horizontal Situation Indicators if a insterment for an airplain.

 

High Low for specific Times - Not Bars or standard periods - tough one???

I currently have hard-coded datetime values (in bold below) and I'm mnaually updating the code each day with yesterday's date and today's date (the times stay as they are) to get the high and the low for a specific time period. 23:00-01:00 CET. (Code posted below).

There has to be a smart way of this code automatically, surely?

extern datetime xdt_from = D'2009.05.21 23:00';

extern datetime xdt_to = D'2009.05.22 01:00';

//+------------------------------------------------------------------+

//| script program start function |

//+------------------------------------------------------------------+

int deinit()

{

//----

//----

return(0);

}

//+------------------------------------------------------------------+

//| Custom indicator iteration function |

//+------------------------------------------------------------------+

int start()

{

//int counted_bars=IndicatorCounted();

//----

int vi_bar;

int vi_startBar;

int vi_endBar;

double vd_hi = 0;

double vd_lo = 99999999.0;

//delete the lines from the last time

ObjectDelete("_start");

ObjectDelete("_end");

ObjectDelete("_hi");

ObjectDelete("_lo");

//find starting and ending bars and mark them with a vline

vi_startBar = ArrayBsearch(Time, xdt_from);

ObjectCreate("_start", OBJ_VLINE, 0, Time[vi_startBar], 0);

vi_endBar = ArrayBsearch(Time, xdt_to);

ObjectCreate("_end", OBJ_VLINE, 0, Time[vi_endBar], 0);

//go on all bars...

for(vi_bar = vi_startBar; vi_bar >= vi_endBar; vi_bar--)

{

//update min/max

vd_hi = MathMax(vd_hi, High[vi_bar]);

vd_lo = MathMin(vd_lo, Low[vi_bar]);

}

//mark the highest and lowest with an hline

ObjectCreate("_hi", OBJ_HLINE, 0, 0, vd_hi);

ObjectCreate("_lo", OBJ_HLINE, 0, 0, vd_lo);

ObjectSet("_hi",OBJPROP_COLOR,BlueViolet);

ObjectSet("_lo",OBJPROP_COLOR,BlueViolet);

ObjectSet("_hi",OBJPROP_WIDTH,2);

ObjectSet("_lo",OBJPROP_WIDTH,2);

//----

return(0);

}

 

None too sure why admin have moved my post to a thread titled 'Average Day Indicator' as if it were something that simple I wouldn't have needed to post and ask in the first place...

Anyhow, not one to look a gift horse in the mouth...

Someone on another site has suggested I use the construct:-

datetime dToday = iTime(Symbol(), PERIOD_D1, 0);

datetime dYesterday= iTime(Symbol(), PERIOD_D1, 1);

but I'm unclear how I would combine these (certainly more useful) date constructs with the specific time windows of 23:00 (yesterday) and 01:00 (today).

Any help much appreciated.

 

I'm a little surprised nobody on this site could help when I assumed it would be THE place for MetaTraders solutions. Anyhow, just in case someone in the future ends up here looking for what I was looking for, the following code does the job of defining the time specific start and end points for the high and low.

xdt_to = StrToTime(StringConcatenate(TimeToStr(iTime(Symbol (), PERIOD_D1, 0),TIME_DATE), " 01:00"));

xdt_from = StrToTime(StringConcatenate(TimeToStr(iTime(Symbol (), PERIOD_D1, 1),TIME_DATE), " 23:00"));

Reason: