#### mrktmstr

##### Well-Known Member
Trade Plans for 22nd Jan 2018

Last edited:

#### travi

##### Well-Known Member
What is sqft() fn?

#### mrktmstr

##### Well-Known Member
What is sqft() fn?

It was a typing error .I meant squareroot

#### travi

##### Well-Known Member
It was a typing error .I meant squareroot
In case of Tata motors
A =(184.95+180.65)/2 =182.80
B =( (sqrt(182.80)+2)*(sqrt(182.80)+2) )/24=1.5757

Using square root, 1.5757 is not achieved

#### mrktmstr

##### Well-Known Member
In case of Tata motors
A =(184.95+180.65)/2 =182.80
B =( (sqrt(182.80)+2)*(sqrt(182.80)+2) )/24=1.5757

Using square root, 1.5757 is not achieved
2.42

#### travi

##### Well-Known Member
what is 2.42 ?

You formula should come to 10.04

#### travi

##### Well-Known Member
Thanks TP bhai. Bcos I read Tradescript, thought i'll give it a try. but this OP isn't aware that we already discussed in many other places that Pi Tradescript has big problems and 0 support from Z or their forum etc.
Copy-pasted formula from their manual doesnt work properly in scanner.

so even after writing correct code, may have high chances of problem but will help if possible.

@timepass in your post, Buy1 / Buy2 for JSPL 13 and 12 are way off. Even for TaMo, will you wait for 20% swings to enter?

from post #11, the ranges are narrower. something still not right, those values dont appear to match.

Last edited:

#### cinderblock

##### Well-Known Member
In case of Tata motors
A =(184.95+180.65)/2 =182.80
B =( (sqft(182.80)+2)*(sqft(182.80)+2) )/24=1.5757
This is the way for calculation.
I think A got wrong..so rest followed..
Can u pls help me in trade script coding this logic
(B-A) then div by24