Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
Hi prob with code again, what is wrong? i copied it exactly from forum. gettin this error:
Study: "BM_MoneyMaker" (Signal)
Please wait ....
------ Compiled with error(s): ------
unverified function is used
line 51, column 7
causal study: jthma (Function)
code:
inputs:
smalength ( 200 ),
emalength ( 100 ),
hmalength ( 34 ),
target1 ( 12 ),
target2 ( 12 ),
target3 ( 20 ),
stopsize ( 12 ),
BE2 ( 0 ), // 0=false, 1=true
BE3 ( 0 ); // 0=false, 1=true
vars:
TickSize ( MinMove / PriceScale ),
smav ( 0 ),
emav ( 0 ),
hmav ( 0 ),
t1 ( Target1 * TickSize ),
t2 ( (Target1 + Target2) * TickSize ),
t3 ( (Target1 + Target2 + Target3) * TickSize ),
st1 ( 0 ),
st2 ( 0 ),
st3 ( 0 );
smav = Average(Close, smalength);
emav = XAverage(Close, emalength);
hmav = jtHMA(Close, hmalength);
// open new positions
if MarketPosition = 0 then begin
if smav > smav[1] and emav > emav[1] and hmav > hmav[1] then begin
Buy ("Enter long") 3 Contracts Next Bar At Market;
end;
if smav < smav[1] and emav < emav[1] and hmav < hmav[1] then begin
SellShort ("Enter short") 3 Contracts Next Bar At Market;
here you go. This is the exact code like you posted it in this thread.
I did not test it or change it, just took what you posted and pasted it within the signal
and function, compiled it and exported it for you.