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 3,584 views
    2. thumb_up 1 thanks given
    3. group 3 followers
    1. forum 12 posts
    2. attach_file 2 attachments




 
Search this Thread

Help with EasyLanguage

  #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?
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
MC PL editor upgrade
MultiCharts
ZombieSqueeze
Platforms and Indicators
Exit Strategy
NinjaTrader
NexusFi Journal Challenge - May 2024
Feedback and Announcements
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Spoo-nalysis ES e-mini futures S&P 500
48 thanks
Just another trading journal: PA, Wyckoff & Trends
35 thanks
Tao te Trade: way of the WLD
26 thanks
Bigger Wins or Fewer Losses?
24 thanks
GFIs1 1 DAX trade per day journal
20 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,435 since Apr 2013
Thanks Given: 482
Thanks Received: 1,628


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 Twitter Reply With Quote




Last Updated on January 4, 2017


© 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