Formula help

This is a discussion on Formula help within the Trading Software forums, part of the Commercial category; "this is not a recognized name,constant or operator" - Jeru, I can only help you if you tell me where ...

Reply
 
LinkBack Thread Tools Search this Thread
Old Aug 16, 2006, 2:21am   #17
 
jose's Avatar
Joined Aug 2006
"this is not a recognized name,constant or operator" - Jeru, I can only help you if you tell me where exactly the text cursor is positioned when you get your error message.

Also, it would be a good idea to have a look at the actual code you are attempting to copy & paste. Copy & paste your formula directly from MetaStock, and post it here again so that we can take a look at it.


jose '-)
jose is offline Commercial web site   Reply With Quote
Old Aug 16, 2006, 10:59am   #18
Joined Aug 2006
here we go again:-)

jensfrode started this thread Hello Jose!

i think you may sleep now and im sitting here with my problem:-)
Ok here i go: i give you 2 example

Eduardos code inside my indicator:

{Bostian's Intraday Intensity Index }
var1 := (((2*C)-H)-L);
var1 := If(var1=0,0.01,var1);
var2 := (H-L);
var2 := If(var2=0,0.01,var2);
var3 := Sum((var1/var2)* VOLUME,21);
var4 := (Sum(VOLUME,21));
var5 := (var3/var4);
II := var5 *100;

II


the text cursor is blinking

var1 := If(var1=0, HERE 0.01,var1);


and with your code Jose

{ Bostian's Intraday Intensity Index }

{ User input }
pds:=Input("Volume summation periods",1,252,21);

{ Intraday Intensity Index }
CloseRange:=(2*C-H)-L;
HiLoRange:=Max(H-L,.00001);
III:=Sum(CloseRange/HiLoRange*V,pds)/Sum(V,pds)*100;

{ Plot III in own window }
III

the text cursor blink

HiLoRange:=Max(H-L, HERE .00001);

i hope this will help you and later me:-)
Thanks for trying Jose and Eduardofor your time and help.

I tried several metastock code from several sites...some work and some dont.

Best regards
Jeru
jensfrode is offline   Reply With Quote
Old Aug 16, 2006, 11:30am   #19
Joined Aug 2006
another example

jensfrode started this thread Hello

the text cursor is blinking

var1 := If(var1=0, here 0.01,var1);

when i do like this with the code

var1 := If(var1=0,01,var1);

its ok

Is this the right answare Jose/Eduardo



and with your code Jose

the text cursor blink

HiLoRange:=Max(H-L, here .00001);
and when i do like this
HiLoRange:=Max(H-L,00001);
its ok

but i also get the same error with code from Jose silva.

I would like to have a bop code.Eduardo gave my an adress:

http://trader.online.pl/MSZ/e-w-Balance_Of_Power.html

Here it is.

Balance Of Power - BOP

THL:=If(H-L=0,.00001,H-L);
{Reward Based on the Open}

BuRBoO:=(H-O)/(THL);
BeRBoO:=(O-L)/(THL);
{Reward Based on the Close}

BuRBoC:=(C-L)/(THL);
BeRBoC:=(H-C)/(THL);
{Reward Based on the Open-Close}

BuRBoOC:=If(C>O,(C-O)/(THL),0);
BeRBoOC:=If(C>O,0,(O-C)/(THL));
BOP:=(BuRBoO+BuRBoC+BuRBoOC)/3 - (BeRBoO+BeRBoC+BeRBoOC)/3;
BOP

then the text cursor blink

THL:=If(H-L=0, here .00001,H-L);

and when i do like this
THL:=If(H-L=0,00001,H-L);

its ok

the only problem is that on the website its in a bargraf and i have a line graf



Best regards
Jeru
jensfrode is offline   Reply With Quote
Old Aug 16, 2006, 12:34pm   #20
 
jose's Avatar
Joined Aug 2006
Jeru, perhaps your PC settings may be currently set to European decimal point delimiters, which may cause problems for MetaStock. For example, 1 dollar 98 cents should be $1.98 and not $1,98.


jose '-)
jose is offline Commercial web site   Reply With Quote
Old Aug 16, 2006, 1:29pm   #21
Joined Aug 2006
jensfrode started this thread who do i correct that...in windows xp
but who can i get a bar graf insted of an line graf
JEru:-)
jensfrode is offline   Reply With Quote
Old Aug 16, 2006, 1:46pm   #22
 
jose's Avatar
Joined Aug 2006
Jeru, you really need to read your MetaStock manual.


jose '-)
jose is offline Commercial web site   Reply With Quote
Old Aug 16, 2006, 1:50pm   #23
Joined Aug 2006
jensfrode started this thread Jose!
I try my best ...but cant you tell me if what i did above with the formula was right..everything about the code was not about changing from europa to..

Best wishes
Jeru
jensfrode is offline   Reply With Quote
Old Aug 16, 2006, 1:56pm   #24
 
jose's Avatar
Joined Aug 2006
Sorry Jeru, but my available free time is very limited. This is all I can help for now.

You really need someone to sit with you and go through the MetaStock basics.


jose '-)
jose is offline Commercial web site   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Similar Threads
Thread Thread Starter Forum Replies Last Post
Here's the 20/20 bar formula that I used botelho64 Trading Software 4 Feb 24, 2008 5:06pm
Formula 1 Chicken Curry The Foyer 24 Dec 5, 2007 9:10am
Formula Help rsrobinson Trading Software 2 Feb 21, 2007 12:44pm
Help with formula martindelica Trading Software 1 Jan 6, 2007 4:46pm
HELP! DDE Formula oatman Techies Corner 46 Sep 25, 2003 2:13pm

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)