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)
I have learned a great deal from this site over the past few weeks but unfortunately still feel dwarfed by the amount of knowledge I find here. Not only feel embarrassed to answer a question but more so to ask one. Any way here it is :
Below is my buy / sell code ( based on John Ehlers Center of Gravity Indicator ) Something is just not right; it buys and sells OK but I can't test it in the strategy tester...all results come back insignificant. Any help is much appreciated.
//************GO LONG
if ( (iCustom(Symbol(), 0, "Center Of Gravity Oscillator",8,true, 1, 1) > iCustom(Symbol(), 0, "Center Of Gravity Oscillator",8,true, 2, 1) && iCustom(Symbol(), 0, "Center Of Gravity Oscillator",8,true, 1, 3) > iCustom(Symbol(), 0, "Center Of Gravity Oscillator",8,true, 0, 3)) )
{ Print("Trading condition [(iCustom(Symbol(), 0, Center Of Gravity Oscillator...] is valid. Trying to open long position...");
Buy(Symbol(), 0.01, 30, 15, 15); }
//************EXIT LONG
if ( (iCustom(Symbol(), 0, "Center Of Gravity Oscillator",8,true, 1, 1) < iCustom(Symbol(), 0, "Center Of Gravity Oscillator",8,true, 2, 1) && iCustom(Symbol(), 0, "Center Of Gravity Oscillator",8,true, 1, 3) < iCustom(Symbol(), 0, "Center Of Gravity Oscillator",8,true, 0, 3)) )
{ Print("Trading condition [(iCustom(Symbol(), 0, Center Of Gravity Oscillator...] is valid. Trying to close long position...");
CloseLong(Symbol()); }
//************GO SHORT
if ( (iCustom(Symbol(), 0, "Center Of Gravity Oscillator",8,true, 1, 1) < iCustom(Symbol(), 1, "Center Of Gravity Oscillator",8,true, 2, 1) && iCustom(Symbol(), 1, "Center Of Gravity Oscillator",8,true, 0, 3) < iCustom(Symbol(), 0, "Center Of Gravity Oscillator",8,true, 0, 3)) )
{ Print("Trading condition [(iCustom(Symbol(), 0, Center Of Gravity Oscillator...] is valid. Trying to open long position...");
Sell(Symbol(), 0.01, 30, 15, 15); }
//************EXIT SHORT
if ( (iCustom(Symbol(), 0, "Center Of Gravity Oscillator",8,true, 1, 1) > iCustom(Symbol(), 0, "Center Of Gravity Oscillator",8,true, 2, 1) && iCustom(Symbol(), 0, "Center Of Gravity Oscillator",8,true, 0, 3) > iCustom(Symbol(), 0, "Center Of Gravity Oscillator",8,true, 0, 3)) )
{ Print("Trading condition [(iCustom(Symbol(), 0, Center Of Gravity Oscillator...] is valid. Trying to close short position...");
CloseShort(Symbol()); }
Can you help answer these questions from other members on NexusFi?
Is it possible that indicator needs TickData? If so, you can probably only test it under Replay mode. Back testing and strategy testing only provides bar data, not tick data, back to the strategy.