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 3,718 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?
Brendt Skorupinsky
Trading Reviews and Vendors
Historical data for Kospi and Nikkei Index
NinjaTrader
What You Know vs How much you know about it
Traders Hideout
tick data interval discrepancy
NinjaTrader
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
ApexTraderFunding.com experience and review
84 thanks
What is Markets Chat (markets.chat) real-time trading ro …
53 thanks
HumbleTraders next chapter
42 thanks
1 Minute Man
22 thanks
Tao te Trade: way of the WLD
17 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,439 since Apr 2013
Thanks Given: 486
Thanks Received: 1,629


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