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 DreamWvr with 1 posts (0 thanks)
    1. trending_up 5,421 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?
Trump Media to sell instant access to market-moving soci …
Traders Hideout
EA
Platforms and Indicators
No book, only a stair: journaling fills where price move …
Cryptocurrency
requesting .nrd replay files from 2026 spy and qqq
The Elite Circle
My Rant with AMP Futures
Trading Reviews and Vendors
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Mes vs MNQ
6 thanks
NexusFi site changelog and issues/problem reporting
5 thanks
BERN ALGOS algo trading journal
3 thanks
Johnnys Journal
2 thanks
TopStep Trader disappointment
2 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