I can work it off perfectly of the price, but the range part is the real problem where Im stuck
Posts made by Boferer
-
RE: SL/TP Adjusting based on the last rangeposted in Questions & Answers
-
SL/TP Adjusting based on the last rangeposted in Questions & Answers
Hello!
I´ve searched the forum for something similar, but I have only encountered examples which were not exactly dealing with this type of an issue(or maybe I overlooked them.)
So I want to take the range of the last closed candle(10 pips for example), set pending orders from the newly opened price 70 % of the range up and down(buy and sell), and adjust the take profit and stop loss in the following way: TP of 30 % of the range for a buy order and a 70 % of the range for the SL. I have been playing around with the % of the price function, but this didnt seem to work for the range as I wanted it to.
So for example:
last candle range is 10 pips - 1.1400 to 1.1410
The new candle opens at 1.1411
We now want to put a buy pending order of the new opened price + 70 % of the range
and a sell pending order of the new opened price - 70 % of the range
and then have the TP/SLs as following: Buy pending order TP = (the new opened price + 70 % of the range) + 30 % of the range
SL = (the new opened price - 70 % of the range) - 30 % of the range
and vice versa for the sell pending order.
so TP= (the new opened price - 70 % of the range) - 30 % of the range
and SL = (the new opened price +70 % of the range) + 30 % of the range -
RE: Could anyone help with a MTF Stoch EA + MA EA?posted in Questions & Answers
Yes, it does work wonders!! I cant thank you enough Line for helping me out with this

-
RE: Could anyone help with a MTF Stoch EA + MA EA?posted in Questions & Answers
I´m still struggling, but I made some small progress, but overall, its still lackluster. Could anyone provide their insight on these issues by any chance?
-
RE: Could anyone help with a MTF Stoch EA + MA EA?posted in Questions & Answers
I´ve also tried adding adjustment to the second EA into the condition such as, "+5pips" but to no avail so far.
-
Could anyone help with a MTF Stoch EA + MA EA?posted in Questions & Answers
Hello!
So I was trying to do this EA in Fxdreema and I couldnt quite wrap my head around it.
I want to go long when the stoch of daily TF is above/has crossed above the 50 line in the indicator window whilst h4,h1,m30,m15,m5, m4, m3, m2, m1 are all crossing above the 50 line in the window at the same time.
I tried to connect 5 conditions for this with the following logic: indicator stoch > value 80, but it doesnt seem to function. However, if I do it only for one stoch at a time, it functions.
The second EA is quite simple: I want to sell everytime the price goes 5 pips above the MA and vice versa during a specific time of the day(e.g. 15:00-22:00 server time) Also, I couldnt get the logic to work within the fxdreema. I wrote the logic down as following:
bool buy_condition_1 = Ask > iMA(NULL, 0, 10, 0, MODE_SMA, PRICE_CLOSE, 0)+ 0.0005 ;
if( buy_condition_1 ) { OrderSelect(ShortTicket,SELECT_BY_TICKET); if(OrderCloseTime() == 0 && ShortTicket > 0) { bool Closed = OrderClose(ShortTicket,OrderLots(),Ask,0,Red); }Could anyone help me with these problems?