NexusFi: Find Your Edge


Home Menu

 





Shift trading signal


Discussion in Platforms and Indicators

Updated
    1. trending_up 1,351 views
    2. thumb_up 0 thanks given
    3. group 2 followers
    1. forum 4 posts
    2. attach_file 0 attachments




 
Search this Thread

Shift trading signal

  #1 (permalink)
Balut
Manila
 
Posts: 16 since Sep 2014
Thanks Given: 5
Thanks Received: 2

I want the trading signal
a little later evaluated in the backtest.

Because of the generation of the signal to the real trading some time passes in a 1 minute chart.

I have tried the following programming, but it does not work.

BuySignal = Cross (Close, MA (Close, 100));
Buy = Ref (BuySignal, -1);

Maybe someone knows how it works.

Balut.

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Ninja Mobile Trader VPS (ninjamobiletrader.com)
Trading Reviews and Vendors
Better Renko Gaps
The Elite Circle
ZombieSqueeze
Platforms and Indicators
The space time continuum and the dynamics of a financial …
Emini and Emicro Index
My NT8 Volume Profile Split by Asian/Euro/Open
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Get funded firms 2023/2024 - Any recommendations or word …
59 thanks
Funded Trader platforms
37 thanks
NexusFi site changelog and issues/problem reporting
24 thanks
GFIs1 1 DAX trade per day journal
22 thanks
The Program
19 thanks
  #2 (permalink)
 prouser 
Zurich/Switzerland
 
Posts: 79 since Oct 2014

Using the two code lines would enter one bar later so what does not work exactly?
Have you defined an exit rule also?

Reply With Quote
  #3 (permalink)
Balut
Manila
 
Posts: 16 since Sep 2014
Thanks Given: 5
Thanks Received: 2


Yes the same for exit
this is just an example of a part of one formula.
Ami Broker does not recognize the word Buysignal.
And displays an error message.

Reply With Quote
  #4 (permalink)
 prouser 
Zurich/Switzerland
 
Posts: 79 since Oct 2014


Balut View Post
Ami Broker does not recognize the word Buysignal.
And displays an error message.

When I insert your two lines of your first post into the editor and click "Verify syntax" or "code check & profile" then there is no error message. So your are talking about a different code then that has a syntax error or whatever other code mistake. If you just say "error message"... there are several types. No one can look over your shoulders right at your screen. In your first post you say it does not work. In the next one you say there is an error message. Every new post has a new detail. So why not telling everything right at the start? Perhaps you should do a screen shot or name the actual error message.

Reply With Quote
  #5 (permalink)
Balut
Manila
 
Posts: 16 since Sep 2014
Thanks Given: 5
Thanks Received: 2

Thanks for the reply
I have now realized what was wrong.
I just need for the formula
Buy = Ref (BuySignal, -1);
leave out the comma
then works.

Reply With Quote




Last Updated on December 28, 2014


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts