OmniTrader Professional Forum OmniTrader Professional Forum
forums calendars search
today this week
 
register logon control panel Forum Rules
You are currently browsing as a guest.
You should logon to access more features
A Self-Moderated Community - ALL MEMBERS, PLEASE READ!
Vote for Members who contribute the most to your trading, and help us moderate content within the Forums.


Only Forum Moderators, Administrators, and the owner of this message may delete it.

 
mgerber

Regular
2525
Posts: 61

Joined: 3/30/2006
Location: Issaquah, WA

User Profile
 
Subject : RE: OT 2018 ATS With VBX3 And Large Cap Stocks
Posted : 12/10/2017 2:01 PM
Post #29753 - In reply to #29752

Hi, Jim.

Thanks for the comment.

But what straight formula can I insert into ATS?

I tried everything I could think of to massage what I deciphered from Mel's coding, and could not get anything to work without compile errors.

Did I improperly decipher the code?


#Indicator
#param "Zlength", 4
#param "buylevel",-1.6
#param "shortLevel",1.6

dim av,st,zs as single
if Bar>Zlength*2 then
av = SMA(C,Zlength)
st = STD(C,Zlength)
zs = (c-av)/st

plot("zScore",zs)
plot("buyLevel",buyLevel,black)
plot("shortLevel",shortLevel,black)
end if
Return zs ' Return the value calculated by the indicator







--Mark G.

[Edited by mgerber on 12/10/2017 2:03 PM]

Deleting message 29753 : RE: OT 2018 ATS With VBX3 And Large Cap Stocks


Nirvana Systems
For any problems or issues please contact our Webmaster at webmaster@nirvsys.com.