Easylanguage and Script Help - Page 4 - Traders Laboratory

Go Back   Traders Laboratory > Trading Resources > Trading Indicators > Coding Forum

Coding Forum Collaborate, receive help, or discuss coding related issues.

Reply
 
LinkBack Thread Tools Display Modes
  #31 (permalink)  
Old 03-28-2008, 10:59 AM
Blu-Ray's Avatar
Blu-Ray Blu-Ray is offline
Blu-Ray is or is not online

Trader Specs
 
Join Date: Nov 2006
Location: England
Posts: 396
Thanks: 90
Thanked 33 Times in 21 Posts
Re: Easylanguage and Script Help

Here you go:

Attached Images
File Type: png DNStrat.png (12.8 KB, 70 views)

__________________
Remember - Take the path of least resistance.
Reply With Quote
  #32 (permalink)  
Old 03-28-2008, 09:10 PM
darknite999 darknite999 is offline
darknite999 has no status.

 
Join Date: Mar 2008
Posts: 25
Thanks: 8
Thanked 0 Times in 0 Posts
Re: Easylanguage and Script Help

Cheers I'll post more info in the morning (was out sorry)

For some reason the strategy does not work.

I've done exactly as you said, i'll show you some screen shots and what it's meant to be. It doesn't seem to trade 30 tick profit. It is usually between 2 to about 70 ticks but never 30...
strange :S

Cheers,
Darknite.

Reply With Quote
  #33 (permalink)  
Old 03-30-2008, 01:12 PM
darknite999 darknite999 is offline
darknite999 has no status.

 
Join Date: Mar 2008
Posts: 25
Thanks: 8
Thanked 0 Times in 0 Posts
Re: Easylanguage and Script Help

Quote:
View Post
Quote:
View Post
Is it possible that I can buy back 30 ticks below the entry on the same bar (if the low goes down that far) if not then the 1st bar that the low gets low enough to buy back at 30 ticks below the entry?
Just noticed your edited part, yes you can. Remove the red line below:

if mp = -1 then begin
buytocover ("ProfitTarget") next bar at ShortEntry - (ProfTarget*mintick) limit;
buytocover ("StoppedOut") next bar at mystop stop;
end;


and the add this to the bottom of the script:

setprofittarget( x );

Note: the profit target is now in dollar amount rather than number of ticks.

Cheers

Blu-Ray


Great but how do I do the same to the stoploss now please?

Cheers,
Darknite

Reply With Quote
  #34 (permalink)  
Old 03-30-2008, 01:13 PM
darknite999 darknite999 is offline
darknite999 has no status.

 
Join Date: Mar 2008
Posts: 25
Thanks: 8
Thanked 0 Times in 0 Posts
Re: Easylanguage and Script Help

Also Blu-Ray

I'll be PM'ing you later on/tomorrow with more detail about my strategy etc.

Cheers and much appreciation,
Darknite.

Reply With Quote
  #35 (permalink)  
Old 03-31-2008, 04:32 AM
Blu-Ray's Avatar
Blu-Ray Blu-Ray is offline
Blu-Ray is or is not online

Trader Specs
 
Join Date: Nov 2006
Location: England
Posts: 396
Thanks: 90
Thanked 33 Times in 21 Posts
Re: Easylanguage and Script Help

Quote:
View Post
Great but how do I do the same to the stoploss now please?

Cheers,
Darknite
Remove these lines below:

if mp = -1 then begin
buytocover ("StoppedOut") next bar at mystop stop;
end;


and the add this to the bottom of the script:

setstoploss( x );

Note: Same as setprofittarget, the setstoploss is now in dollar amount rather than number of ticks.

Cheers

Blu-Ray

ps: No probs I'll await your PM.

__________________
Remember - Take the path of least resistance.
Reply With Quote
The Following User Says Thank You to Blu-Ray For This Useful Post:
darknite999 (03-31-2008)
  #36 (permalink)  
Old 03-31-2008, 10:01 AM
darknite999 darknite999 is offline
darknite999 has no status.

 
Join Date: Mar 2008
Posts: 25
Thanks: 8
Thanked 0 Times in 0 Posts
Re: Easylanguage and Script Help

Cheers,

But is this so I can set the amount in dollars above the high or the amount in dollars it gains from the entry?

Would I have to put something like.

setstoploss (high + 10)

if I wanted 10 dollars above the high or what?

Lol, thanks once again.

Darknite.

Reply With Quote
  #37 (permalink)  
Old 03-31-2008, 10:46 AM
Blu-Ray's Avatar
Blu-Ray Blu-Ray is offline
Blu-Ray is or is not online

Trader Specs
 
Join Date: Nov 2006
Location: England
Posts: 396
Thanks: 90
Thanked 33 Times in 21 Posts
Re: Easylanguage and Script Help

Quote:
View Post
Cheers,

But is this so I can set the amount in dollars above the high or the amount in dollars it gains from the entry?

Would I have to put something like.

setstoploss (high + 10)

if I wanted 10 dollars above the high or what?

Lol, thanks once again.

Darknite.

No, the setstoploss is in dollar amount only from your entry point.

What you require is in the original script, but I suspect you must be using a larger timeframe and have come across occasions when your stop would have been taken out on your bar of entry, but since the code only sends the stop order out 1 bar after entry, you're taking a bigger hit. Would I be correct in thinking this?

If so then you would have to send out your order via a 1min chart ( using 3 sets of data ) ........... now where did I put that can of worms


Cheers

Blu-Ray

__________________
Remember - Take the path of least resistance.
Reply With Quote
The Following User Says Thank You to Blu-Ray For This Useful Post:
darknite999 (03-31-2008)
  #38 (permalink)  
Old 03-31-2008, 11:27 AM
darknite999 darknite999 is offline
darknite999 has no status.

 
Join Date: Mar 2008
Posts: 25
Thanks: 8
Thanked 0 Times in 0 Posts
Re: Easylanguage and Script Help

lol

Yeah, I'm taking a bigger hit that I should be. Grrr why do they make it so difficult to do

Would it be possible if you could help me to do this please?

and by a can of worms u mean possibly creating more problems for myself?

Grrrrrr

Thanks for eveything,
Dark-nite

Reply With Quote
  #39 (permalink)  
Old 03-31-2008, 11:41 AM
Blu-Ray's Avatar
Blu-Ray Blu-Ray is offline
Blu-Ray is or is not online

Trader Specs
 
Join Date: Nov 2006
Location: England
Posts: 396
Thanks: 90
Thanked 33 Times in 21 Posts
Re: Easylanguage and Script Help

Quote:
View Post
lol

Yeah, I'm taking a bigger hit that I should be. Grrr why do they make it so difficult to do

Would it be possible if you could help me to do this please?

and by a can of worms u mean possibly creating more problems for myself?
Grrrrrr

Thanks for eveything,
Dark-nite
No, by that comment I meant me

I'll tell you what, instead of all this too-ing and fro-ing, explain exactly what you require ( eg, symbols, timeframes, targets, stoploss, etc ) and any little problems you've come across and I'll sort it out. You can send it by PM if you wish.

Cheers

Blu-Ray

__________________
Remember - Take the path of least resistance.
Reply With Quote
  #40 (permalink)  
Old 03-31-2008, 11:51 AM
darknite999 darknite999 is offline
darknite999 has no status.

 
Join Date: Mar 2008
Posts: 25
Thanks: 8
Thanked 0 Times in 0 Posts
Re: Easylanguage and Script Help

so yea,

could I put my stop loss on a 5 minute bar at 2 ticks above the entry bar?

if thats possible im 100% sure the stoploss will be correct everytime!

Cheers a million,
Darknite.

Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Some EasyLanguage Help Please jjthetrader Coding Forum 8 06-02-2008 04:20 PM
MBT FX Trading Performance Script Sparrow Coding Forum 3 03-06-2008 07:12 AM
Searching TTM Scalper Indicator Script for QuoteTracker ray112 Coding Forum 0 02-06-2008 05:51 AM
Chat Script from Nov. 7, 2006 on Forex Trading Soultrader Chat Room Scripts 0 11-07-2006 02:28 PM
Antonio: Please help me on MP for easylanguage nasdaq5048 Market Profile® 12 10-31-2006 05:53 PM


All times are GMT -4. The time now is 06:42 AM.

 


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59