NexusFi: Find Your Edge


Home Menu

 





how to make program store price value after crossover and then use to place a limit


Discussion in MultiCharts

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




 
Search this Thread
  #1 (permalink)
honoluluhustler
Honolulu + Hawaii / USA
 
Posts: 18 since Jul 2014
Thanks Given: 16
Thanks Received: 1

How do i find out at what exact point the crossovers occurs and then save them to a variable to be used to enter a limit order?

if volume > VOVO
and
ROC1[1] crosses above ROC2[1]
and
ExpAv1[1] crosses above ExpAv2[1]
and
VOVOROC1[1] crosses above VOVOROC2[1] then
begin
buy ( "buy") Cts contracts next bar at market ;
marketposition = true;


Reply With Quote

Can you help answer these questions
from other members on NexusFi?
After $87M Settles NO: Irans Nuclear Redline Sets Up the …
Prediction Markets & Event Contracts
April Jobs Beat Flips Fed Hike Odds Past 52% for First T …
Traders Hideout
The June 15 Resolution Trap: Irans Agreed Text Still Pri …
Prediction Markets & Event Contracts
Fabrication or Framework? Irans Denied MOU Explains the …
Prediction Markets & Event Contracts
Ninjatrader users - good CONNECTIONs post and article fr …
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
NexusFi site changelog and issues/problem reporting
16 thanks
Darmok and Jalad at Tanagra
3 thanks
Big Mike in Ecuador
2 thanks
30 Sessions
1 thanks
CME Expands 24/7 Trading to WTI Crude Oil and Gold -- We …
1 thanks
  #2 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,448 since Apr 2013
Thanks Given: 494
Thanks Received: 1,643

honoluluhustler,

the exact point in my opinion would be the tick that causes the cross. However in your code example you are looking for crosses of two indicators with different settings (like the ExpAv1 and ExpAv2). So the price should be Close[1] I suppose.

Regards,
ABCTG



honoluluhustler View Post
How do i find out at what exact point the crossovers occurs and then save them to a variable to be used to enter a limit order?

if volume > VOVO
and
ROC1[1] crosses above ROC2[1]
and
ExpAv1[1] crosses above ExpAv2[1]
and
VOVOROC1[1] crosses above VOVOROC2[1]
then
begin
buy ( "buy") Cts contracts next bar at market ;
marketposition = true;


Follow me on X Reply With Quote
Thanked by:
  #3 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,448 since Apr 2013
Thanks Given: 494
Thanks Received: 1,643


rleplae,

I am afraid, but this will only work in Ninjatrader and not in Multicharts or Tradestation, which is what honoluluhustler is using.

Regards,
ABCTG


rleplae View Post
hi

as you are talking about orders, i am assuming you are talking about
a strategy and not an indicator...

it depends where you will put this code
for example if you put this code in the method
OnBarUpdate ()
{
}

that will be called when a new bar is drawn (if you activate the strategy with 'on bar close')
you can then refer to the last element [0], otherwise you are running a bar behind

you can take a look at my thread, were i am taking the audience into a journey
of building a BOT to implement the ATM method

it does not generate orders (will do that later
but it outputs to the output window in NT

regards,
ron


Follow me on X Reply With Quote
Thanked by:
  #4 (permalink)
 
rleplae's Avatar
 rleplae 
Gits (Hooglede) Belgium
Legendary Market Wizard
 
Experience: Master
Platform: NinjaTrader, Proprietary,
Broker: Ninjabrokerage/IQfeed + Synthetic datafeed
Trading: 6A, 6B, 6C, 6E, 6J, 6S, ES, NQ, YM, AEX, CL, NG, ZB, ZN, ZC, ZS, GC
Posts: 2,947 since Sep 2013
Thanks Given: 2,442
Thanks Received: 5,855


ABCTG View Post
rleplae,

I am afraid, but this will only work in Ninjatrader and not in Multicharts or Tradestation, which is what honoluluhustler is using.

Regards,
ABCTG

absolutely right,
i noticed the platform mismatch and already deleted my answer
sorry for trying to help too fast


Follow me on X Visit my NexusFi Trade Journal Reply With Quote
Thanked by:




Last Updated on August 3, 2014


© 2026 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 - Downloads - Top
no new posts