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 Quick Summary with 1 posts (0 thanks)
    4. looks_4 TradeAnonymous with 1 posts (0 thanks)
    1. trending_up 1,498 views
    2. thumb_up 1 thanks given
    3. group 2 followers
    1. forum 5 posts
    2. attach_file 0 attachments




 
Search this Thread

need help in programming trailstop order

  #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?
Better Renko Gaps
The Elite Circle
Exit Strategy
NinjaTrader
ZombieSqueeze
Platforms and Indicators
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
MC PL editor upgrade
MultiCharts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
My NQ Trading Journal
21 thanks
Diary of a simple price action trader
20 thanks
Just another trading journal: PA, Wyckoff & Trends
17 thanks
Tao te Trade: way of the WLD
13 thanks
HumbleTraders next chapter
9 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 futures.io (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 - Downloads - Top
no new posts