NexusFi: Find Your Edge


Home Menu

 





need help in programming trailstop order


Discussion in EasyLanguage Programming

Updated
      Top Posters
    1. looks_one mixpol with 3 posts (1 thanks)
    2. looks_two Jura with 2 posts (0 thanks)
    3. looks_3 TradeAnonymous with 1 posts (0 thanks)
    4. looks_4 Quick Summary with 1 posts (0 thanks)
    1. trending_up 1,631 views
    2. thumb_up 1 thanks given
    3. group 2 followers
    1. forum 5 posts
    2. attach_file 0 attachments




 
Search this Thread
  #1 (permalink)
mixpol
Kazan russia
 
Posts: 31 since Dec 2013
Thanks Given: 2
Thanks Received: 5

hi everyone!
could anyone give me a trailstop code for easylanguage strategy ?
my searching forum here and not here is not positive ((
thx forward !!

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Seeking Insights on Day Trading Options on Futures
Options
Multi-Data Strategy Questions
MultiCharts
Creating global variables for Ninjatrader
Traders Hideout
Time, Futures, Scalping, Treasurys
Treasury Notes and Bonds
Need help Heiken Ashi system
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Vinny E-Mini & Algobox Review TRADE ROOM
8 thanks
Futures spread trading grains education sources?
6 thanks
Just another trading journal: PA, Wyckoff & Trends
3 thanks
Wheres the videos?
3 thanks
Blue wave trading review
2 thanks
  #3 (permalink)
 
Jura's Avatar
 Jura   is a Vendor
 
Posts: 775 since Apr 2010
Thanks Given: 2,352
Thanks Received: 690


EasyLanguage is not hard, and you'll learn a lot more about programming if you try to make it yourself instead of looking for copy/paste code.

Why not give it a shot? If you become stuck, just post any questions you might have here on NexusFi (formerly BMT).

Reply With Quote
  #4 (permalink)
mixpol
Kazan russia
 
Posts: 31 since Dec 2013
Thanks Given: 2
Thanks Received: 5


mixpol View Post
hi everyone!
could anyone give me a trailstop code for easylanguage strategy ?
my searching forum here and not here is not positive ((
thx forward !!

here we are


[IntrabarOrderGeneration = false]
inputs: ATRLength( 10 ), NumATRs( 3 ) ;
variables: var0( 0 ), var1( 0 ), var2( 0 ) ;

var0 = AvgTrueRange( ATRLength ) * NumATRs ;
var1 = MarketPosition ;

if var1 = 1 then
begin
condition1 = var1[1] <> 1 or High > var2 ;
if condition1 then
var2 = High ;
Sell ( "AtrLX" ) next bar at var2 - var0 stop ;
end
else
Sell ( "AtrLX-eb" ) next bar at High - var0 stop ;

Reply With Quote
Thanked by:
  #5 (permalink)
 
Jura's Avatar
 Jura   is a Vendor
 
Posts: 775 since Apr 2010
Thanks Given: 2,352
Thanks Received: 690


mixpol View Post
here we are

Topic solved, right? Or does this code do something else than you want?

Reply With Quote
  #6 (permalink)
mixpol
Kazan russia
 
Posts: 31 since Dec 2013
Thanks Given: 2
Thanks Received: 5


Jura View Post
Topic solved, right? Or does this code do something else than you want?

it's cool trailing code to start testing strategies

Reply With Quote




Last Updated on June 5, 2015


© 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