Couldnt pick the minimum value for a particular date


#1

image

Like to pick the minimum value of lowcrossbar field for the date 6/4/18.
Here it is 508.

here is my code'

newday= (DateNum()!= Ref(DateNum(),-1));
firstbarOfDayCount = ValueWhen( newday, BarIndex());

js5 = NumToStr(firstbarOfDayCount);
js6= StrToNum(js5);
 lowjs= 99999;
 lowjs1=0;
  for( i=js6; i < barcount; i++ )
{

lowjs1=ValueWhen((js41< pvsdaylow ), lowcrossbar);
lowjs=Min(lowjs1,lowjs);

}

Please correct,


#2

@sankarjayaram please follow the forum rules and properly post your codes using the tags (I personally find it disappointing that you seem to have joined the forum months ago and yet you don't know how to properly post code).

Second, I had a brief look at your code at it is full of mistakes and errors. Try to tidy up and recode so that it is useable.

Third, please explain in words what your low and high crossbars are supposed to be?


#3

Thank you for the feedback. I would have not got the output if the code is full of errors and mistakes. I will take your feedback and verify again. Would be happy if you can refer me to certain standards and procedures , so that i can be in sync.

Like to pick the first bar, where the price crosses previous days high , or previous days low.
suppose the 10th bar is crossing the previous days high, like to pick that number 10,
so that i can avoid the bars before that in my reports.

require only the first cross over, subsequent ones, we can ignore.

Thanks in advance


#4

I will repost the codes after modification. Thanks


#5

This post was flagged by the community and is temporarily hidden.


#6

@sankarjayaram It's very disappointing, that even now - after @quantboy remarks, you don't obey the rules of this forum. 3 months on the forum and you still don't know how a properly formatted code looks like? In this way you show disrespect to other forum members from whom you expect help ...


#7

I started using this forum since last 2 days!!!!!
I have been asked to post here for help!!!! Now let me learn the rules.
Forget all my requests as of now. You can delete them completely.


#8

Przechwytywanie

You have joined on December 29 2017 !

Another user offended by being asked to read and obey the forum rules in exchange for free help !!!


#9

Solved the issue. Now it is working fine.