NexusFi: Find Your Edge


Home Menu

 





Help with EasyLanguage


Discussion in EasyLanguage Programming

Updated
      Top Posters
    1. looks_one yofrankie1 with 6 posts (0 thanks)
    2. looks_two chik with 4 posts (1 thanks)
    3. looks_3 ABCTG with 2 posts (0 thanks)
    4. looks_4 Quick Summary with 1 posts (0 thanks)
    1. trending_up 5,216 views
    2. thumb_up 1 thanks given
    3. group 3 followers
    1. forum 12 posts
    2. attach_file 2 attachments




 
Search this Thread
  #11 (permalink)
 chik 
San Diego, California
 
Experience: Advanced
Platform: MultiCharts
Trading: ES, NQ
Posts: 26 since Mar 2016
Thanks Given: 0
Thanks Received: 22

How does this look:

 
Code
[IntrabarOrderGeneration = true];

inputs:
	EMAType(10),
	StopLoss(500),
	ProfitTaking(1500);

variables:
	EMA_Trigger(0);

EMA_Trigger = XAverage(Close, EMAType);

if marketposition=0 then buy 1000 shares next bar at EMA_Trigger stop;

SetStopLoss(StopLoss);
SetProfitTarget(ProfitTaking);


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
June 15 Peace Odds Surge From 3.6% to 12.25% After Trump …
Prediction Markets & Event Contracts
Fed Hike Odds at 57% After Warsh: England Surges 12.9%, …
Prediction Markets & Event Contracts
ATFX Suspends Prop Trading Unit ATFunded -- Full Review …
Funded Trading Evaluation Firms
Rubios Good News Within Hours and the 30-Day Math: Why H …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
NexusFi site changelog and issues/problem reporting
13 thanks
Darmok and Jalad at Tanagra
3 thanks
Big Mike in Ecuador
1 thanks
30 Sessions
1 thanks
  #12 (permalink)
yofrankie1
KS/Olathe
 
Posts: 6 since Jan 2017
Thanks Given: 0
Thanks Received: 0

Here is the result. Still not right. Thanks for trying to help though.


Reply With Quote
  #13 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,448 since Apr 2013
Thanks Given: 494
Thanks Received: 1,643


What are you look inside bar backtesting settings? In case of intrabar order generation you should usually enable it with the highest possible resolution, otherwise your results will not be correct. This link explains it fairly well: About Intrabar Order Generation

You should also look into the reserved word "intrabarpersist" and check your logic if you need it for your variables.

Regards,

ABCTG


Follow me on X Reply With Quote




Last Updated on January 4, 2017


© 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