@Alireza76n
There is far not enough instructions about your needed strategy but, I can buy you some time.
Here is a channeling auto draw tool(double trend lines): https://fxdreema.com/forum/topic/12875/auto-channeling-draw/17?_=1688810089513
I let you add buy/sell blocks the way you want so you can backtest it and see that trend lines based strategies don't work.
Posts made by seb 0
-
RE: How do we make a trend line?posted in Questions & Answers
-
RE: Working with Pips and absolute numbersposted in Questions & Answers
@JRod78
This concept of price fraction/pips is misleading. They both express distances, expressed in different units. Price fraction actually means (absolute)distance; and pips means distance in pips.
And so : price fraction=(absolute) distance=distance in pips*pips value.
TP in price fraction=0.0015/2.
TP in fixed pips=0.0015/2/pips value. -
RE: Difference in Point Size and Tick Size in fxDreema?posted in Questions & Answers
@Prot82
I haven't found a universal definition of the point, but often it is the unit of the 6th digit of the asset price. And it can be the same as the tick size which is the minimum quotation change of the price. For what you do you should better rely on points I guess.
Just that grid strategies are bad idea. -
RE: How can i add new volume of buy like Martingle?posted in Questions & Answers
@areffarokhzade
You are forced to open a new "trade" every time you "add volume".
Also if a strategy isn't profitable not betting, it is not profitable betting either. And yours is surely not profitable.
So why striving with it ? -
RE: Solve simultaneous tradesposted in Questions & Answers
@hamid8718
What to do you mean by "it opens trades simultaneously in the region" , what region ? -
RE: How do I get the maximum float valueposted in Questions & Answers
@Pheaktra-Capo
Where does it filter only the positions opened in the current period ? -
RE: How do I get the maximum float valueposted in Questions & Answers
@TXZZ
I made it with the profit, if you want it with the loss just multiply it by -1.
Not tested : https://fxdreema.com/shared/keq2mqJOb -
RE: Candle time thill endposted in Questions & Answers
@Gilles
You can also display it in time format : TimeToString((int(iTime(_Symbol,PERIOD_CURRENT,0))+PeriodSeconds(PERIOD_CURRENT))-int(TimeCurrent()),TIME_SECONDS)
Glad to see you mastered it. -
RE: How do I get the maximum float valueposted in Questions & Answers
@TXZZ
What do you mean by float value for a set of orders ?
Do you mean the value of their opening price ?
Do you want to check the maximum value for a set of orders opened during that given period ? By orders do you mean positions ?
If so you would loop with "for each trade" block with a filtering condition : opening time > start period time; and a second condition that is : position value > maximum value. Save the position value in the "maximum value" variable with a block beneath the conditions. -
RE: Candle time thill endposted in Questions & Answers
@Gilles
You want the time of what candle ? Till end of what ? Do you want the time of the candle to be displayed, and this till end; or do you want displayed the time remaining till the end of the thing? -
RE: Break the trend line and determine the floor higher than the previous oneposted in Questions & Answers
@h-a
There are plenty ways of automatically defining bottoms and tops, one can be with the "new top in trend" block I guess.
We can't know for you what to do if you don't tell us what "strategy" you want to exploit. If it is a "trend line breakout bottom retest whatever", I guess you should drawn that line.
Just be aware you will loose money with it. -
RE: Auto lot size managementposted in General Discussions
@Nemia18
By setting the money management feature to %balance in the buy/sell blocks. -
RE: EA is not stopping to mark high and low of candle.posted in Questions & Answers
@Safeer992
One solution is to declare an integer variable which will be initiated with a value of 0(=no position); give it a value of -1 when a short(sell) position is opened; give it a value of 1 when a long(buy) position is opened.
Add a condition stating : sell if variable = 0 or 1 ; buy if variable = 0 or -1.
This being said, be aware that these kind of "strategies" are smoke and mirrors, will make you loose money. You need inquiring seriously about it. -
RE: Poor countries, poor peopleposted in General Discussions
It's unfortunate spending so much time in something that(beside will make you loose money) is useless. That's why I stopped trying to learn strategies that only apply to trading, and begun learning machine learning. Therefore I utilize the market data as a laboratory environment to develop my skills in this field, making a little money trading with it, with the view to export successful models to useful sectors like healthcare.
-
RE: Martingale principlesposted in Questions & Answers
I can also add that the martingale system:
in an average market situation, makes money which would not be the case not betting.
in a good market situation, makes less money than without betting, because you need to enter positions with little money due to the fact that the betting series must begin with very little bets.
in a bad market situation, makes you loose more money than without betting because it evolves exponentially.
There is then 2 worse situations an 1 better, just that the 1 situation(average) is applicable 2 times more often, on a random market. -
RE: i have try to use STOCHRSI indicator to create a EA for a while here but its not wrorking. this does anyone has a experience or work with that indicator before?posted in Questions & Answers
@Marked-up
I forgot its exact formula(and so how it exactly behaves) but you can find it on internet. Roughly, compared to the RSI, it is an oscillator that is less sensitive to trends. It means that it will go not much less to the top range(high value), in a downtrend than on a flat market, compared to the RSI. So it is complementary. However as it is based on the previous range(volatility), it can produce a lot of unwanted signals following low volatility periods. -
RE: When to stop OnInit()posted in Bug Reports
@fxDreema
Interesting, how would a partnership with brokers work ? I mean what would be the way to force the users importing the built EA to the broker ? -
RE: Check distance pending orderposted in Questions & Answers
@William-1
Usually a point is a tenth of a pip. 10 pips=100points -
RE: Tips for robustnessposted in Questions & Answers
@FxWRLD
You can try adding an ATR filter but as roar said volatility can hardly be foretasted, a high volatility on a recent past doesn't mean a high volatility on a close future.