hey newschool, if you are still around and if you have a moment, would you please try to code this strategy into an ea:
5M Chart
any currency
this are the rules
Long Entry
1) RED CANDLE CLOSES
2) GREEN CANDLE CLOSES
3) PRICE TOUCHES HIGH OF PREVIOUS GREEN CANDLE - ENTER LONG
Short Entry
1) Green Candle closes
2) Red Candle Closes
3) Red Candle Touches lowest of previous red canlde - Enter SHORT
Exit will again be trailing sl, to be optimized by the pair or reverse signal, which ever comes first.
if possible, a filter can be added, which is to take long trades only when the cci is above 0 and only shorts when it is below, with the cci set to 333.
I code your strategy into an EA
Moderator: moderators
Please add www.kreslik.com to your ad blocker white list.
Thank you for your support.
Thank you for your support.
Hey newschool,
I am looking for an EA which trails open orders, places the first stop loss at X number of pips out of profit then moves stop loss closer to the current price in away such when the price moves Y number of pips, then the EA would move the stop loss X number of pips closer to the price. eg when a rpice drops 5 pips, lower the stop loss by 6 pips. Or any other combination.
As an example, I place a manual trade then the EA automatically sets my stop loss X number of pipis away from my transaction price.
As the price moves, I'd like the EA to move to stop loss closer by X number of pips toward the price.
So basically, the farther I am in profit, the tighter my stop loss.
Then the ea would lock in a final stop lose when it gets close to the price. Probably about twenty pips. But it would be nice to have a variable for that final stop loss number.
The only other variable I can think of is to set the lot sizes to bought or sold.
I am looking for an EA which trails open orders, places the first stop loss at X number of pips out of profit then moves stop loss closer to the current price in away such when the price moves Y number of pips, then the EA would move the stop loss X number of pips closer to the price. eg when a rpice drops 5 pips, lower the stop loss by 6 pips. Or any other combination.
As an example, I place a manual trade then the EA automatically sets my stop loss X number of pipis away from my transaction price.
As the price moves, I'd like the EA to move to stop loss closer by X number of pips toward the price.
So basically, the farther I am in profit, the tighter my stop loss.
Then the ea would lock in a final stop lose when it gets close to the price. Probably about twenty pips. But it would be nice to have a variable for that final stop loss number.
The only other variable I can think of is to set the lot sizes to bought or sold.
- forexbob
- rank: 150+ posts
- Posts: 275
- Joined: Mon Apr 20, 2009 9:52 am
- Reputation: 31
- Location: Planet Earth
- Gender:
txraddoc wrote:Hey newschool,
I am looking for an EA which trails open orders, places the first stop loss at X number of pips out of profit then moves stop loss closer to the current price in away such when the price moves Y number of pips, then the EA would move the stop loss X number of pips closer to the price. eg when a rpice drops 5 pips, lower the stop loss by 6 pips. Or any other combination.
As an example, I place a manual trade then the EA automatically sets my stop loss X number of pipis away from my transaction price.
As the price moves, I'd like the EA to move to stop loss closer by X number of pips toward the price.
So basically, the farther I am in profit, the tighter my stop loss.
Then the ea would lock in a final stop lose when it gets close to the price. Probably about twenty pips. But it would be nice to have a variable for that final stop loss number.
The only other variable I can think of is to set the lot sizes to bought or sold.
have also a look at Multi-purpose trade management ea
from steve hopwood .
http://www.forexfactory.com/showthread.php?t=89371
probably does not all you want , but goes far.
code is structured and easily adapted
The highest Forex rebates: http://www.cashbackforex.info
Please add www.kreslik.com to your ad blocker white list.
Thank you for your support.
Thank you for your support.
-
- rank: <50 posts
- Posts: 2
- Joined: Sun Aug 29, 2010 2:32 am
- Reputation: 0
- Gender:
Trying to convert a thinkscript to mql4
I have not had any luck converting a thinkscript code to mql4 and was hoping you may be able to help. The EA I would like to create looks like this in thinkscript. Perhaps you can decipher it and create an EA for it.
declare LONG_Entry
input length = 20;
input num_devs_dn=2;
input bollinger_price=close
input lower_band_price=close
def value = Average(bollinger_price, length) - num_devs_dn * stdev(bollinger_price), length);
def crosses_over = lower_band_price>value and lower_band_price[1] <= value[1];
def condition = crosses_over;
addOrder(condition, Max(open,value));
declare Short_Entry;
input length = 20
input num_devs_up=2
input bollinger_price=close
input upper_band_price=close
def value = Average(bollinger_prie, length) + num_devs_up * stdev(bollinger_price, length);
def crosses_under = upper_band_price < value && upper_band_price[1] >= value[1];
def condition = crosses_under && low <=value;
addOrder (condition,Min(open,value));
declare LONG_Entry
input length = 20;
input num_devs_dn=2;
input bollinger_price=close
input lower_band_price=close
def value = Average(bollinger_price, length) - num_devs_dn * stdev(bollinger_price), length);
def crosses_over = lower_band_price>value and lower_band_price[1] <= value[1];
def condition = crosses_over;
addOrder(condition, Max(open,value));
declare Short_Entry;
input length = 20
input num_devs_up=2
input bollinger_price=close
input upper_band_price=close
def value = Average(bollinger_prie, length) + num_devs_up * stdev(bollinger_price, length);
def crosses_under = upper_band_price < value && upper_band_price[1] >= value[1];
def condition = crosses_under && low <=value;
addOrder (condition,Min(open,value));
-
- rank: <50 posts
- Posts: 2
- Joined: Sun Aug 29, 2010 2:32 am
- Reputation: 0
- Gender:
Hey newschool,
Any chance of you kindly using this attached indicator to filter the trades triggerred by the multi ema ea that you coded for me some time back.
This additional indicator i think would filter out many of the unprofitable trades under my older criteria.
use of the attached indicator is selfexplanatory, down arrow for short and up arrow for long.
Many thanks!
Any chance of you kindly using this attached indicator to filter the trades triggerred by the multi ema ea that you coded for me some time back.
This additional indicator i think would filter out many of the unprofitable trades under my older criteria.
use of the attached indicator is selfexplanatory, down arrow for short and up arrow for long.
Many thanks!
- Attachments
-
- aBB.mq4
- (5.01 KiB) Downloaded 277 times
-
- rank: <50 posts
- Posts: 6
- Joined: Thu Sep 17, 2009 12:34 pm
- Reputation: 0
- Gender:
Awesome Oscillator alert
newschool, I don't need an EA created, but an indicator. Could you create an indicator that shows a popup alert when the Awesome Oscillator crosses over the zero line and closes positive (green) and also when it crosses over the zero line and closes negative (red)? The sound of the alert I would like the indicator to use the sound I use for an alert in my Metatrader platform. Thank you.
Please add www.kreslik.com to your ad blocker white list.
Thank you for your support.
Thank you for your support.