| Automated Trading Black box systems, strategy automation, algorithmic trading, etc... |
![]() | | Tweet | |
| | #1 | ||
![]() | Easy Language Help so if I was long and I hit profit target at 100 , next order I will take is short or long but blow 100 ..say 99 thanks | ||
| |
|
| | #2 | ||
![]() | Re: Easy Language Help ![]() so how can I code this: after profit target occurs, system can take only opposite direction orders or better than last exit in same direction so if I was long and I get profit target at 100, next order I will take is only short or long but below 100 ...lets say 99 thanks | ||
| |
|
| | #3 | ||
![]() | Re: Easy Language Help var: LastExitPrice(-1); entry rule... if yada.... and LastExitPrice = -1 or Close < LastExitPrice then if conditions is met for long then.... entry... if conditions is met for short then... exit rule:entry... ... yada... if... then exit position... begin Sell("....") next bar at market; LastExitPrice = Close; End; Remember to reset LastExitPrice at the end of the day/ week or whatever | ||
| |
|
| The Following User Says Thank You to januson For This Useful Post: | ||
JKLM (11-13-2008) | ||
| | #4 | ||
![]() | Re: Easy Language Help and how would you code if I want take only opposite orders after profit target | ||
| |
|
| | #5 | ||
![]() | Re: Easy Language Help vars: LastOrderType("unknown"); And then write long entry og short entry into that each time a trade is initiated. Remember again to reset variable if the price is lower than, for instance 3% if Close < LastExitPrice -3% and LastOrderType = "Long" then LastOrderType = "unknown"; Otherwise you will presumeable only get one long entry | ||
| |
|
| The Following User Says Thank You to januson For This Useful Post: | ||
JKLM (11-14-2008) | ||
| | #6 | ||
![]() | Re: Easy Language Help when rsi hit 90, sell one ES contract.profit 4 ticks and stop loss 4 ticks. when rsi hit 20, buy one ES contract.profit 4 ticks and stop loss 4 ticks. anyone can advice or give some pointers? appreciate,thanks.cwk | ||
| |
|
| | #7 | ||
![]() | Re: Easy Language Help Quote:
there are a few examples that follow your chain of thought. | ||
| |
|
| | #8 | ||
![]() | Re: Easy Language Help Quote:
if rsi(close,14) crossesover 90 then shortsell this bar on close else if rsi(close,14) crossesunder 20 then buy this bar on close; i don't need to see a backtest of this, do NOT trade this | ||
| |
|
| The Following User Says Thank You to flyingdutchmen For This Useful Post: | ||
chikwk (02-11-2009) | ||
![]() |
| Thread Tools | |
| Display Modes | Help Others By Rating This Thread |
| |
| ∧ Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| List of Easy Language Reserved Words | trbates | Beginners Forum | 15 | 12-11-2009 11:44 AM |
| Easy Language in OEC, Help with Channel Indicator | popstocks | Coding Forum | 10 | 11-07-2008 06:09 PM |
| Easy Language Strategy Help | Marc33139 | Automated Trading | 3 | 07-28-2008 11:35 AM |
| Accessing Market Indices in Easy Language | goldspot | Technical Analysis | 3 | 12-26-2007 11:01 PM |
| Easy Language - Help with Simple System | gatrader | E-mini Futures Trading Laboratory | 8 | 12-17-2007 06:40 PM |