How can I use only one FUN
Here I will use the average for one day with the average for three days, and when each crossing up or down I want to apply buy or sell, without closing.
When the market rises or falls there will be profits
Posts made by khalids222
-
HOW CAN I FILTER ONE PER TICK?posted in Questions & Answers
-
RE: How to stop a buy or sell order when the condition is met with one per tick?posted in Questions & Answers
I will try and try it, thank you
-
RE: How to stop a buy or sell order when the condition is met with one per tick?posted in Questions & Answers
@roar good but i need to make buy =0.01 and sell = 0.01
and The deal that opens now is bigger than the previous one whether selling or buying .
example : the expert opened 1buy =0.01 then in a cross to down i need to sell= 0.02 -
RE: How to stop a buy or sell order when the condition is met with one per tick?posted in Questions & Answers
Thank you very much, I'll try it.
I appreciate your efforts and your response, and thank you -
RE: How to stop a buy or sell order when the condition is met with one per tick?posted in Questions & Answers
Let me explain the subject in more detail and in the pictures so that I understand what I want and how it works
-
RE: How to stop a buy or sell order when the condition is met with one per tick?posted in Questions & Answers
@roar said in How to stop a buy or sell order when the condition is met with one per tick?:
But you have buy and sell trades open. You don't want multiple open buys or sells, right? Or do you want it?
i want multiple buys and sells, and i want each every a cross sell or buy
-
RE: How to stop a buy or sell order when the condition is met with one per tick?posted in Questions & Answers
@roar said in How to stop a buy or sell order when the condition is met with one per tick?:
I think the error is somewhere else. Can you make a very simplified example?

There is a cross pass: it is not bought and sold
-
RE: How to stop a buy or sell order when the condition is met with one per tick?posted in Questions & Answers
@roar
When I place no trade, the condition is met and is not bought or sold . -
RE: How to stop a buy or sell order when the condition is met with one per tick?posted in Questions & Answers
With extreme regret did not work well, and when working the condition was exceeded.
Where there was a purchase and did not open, and there was a sale and did not open either.
I see that handling NO TRADE is not good .
I have tried ONE PER BAR BUT NOT GOOD .
Best choice ONE PER TICK . but I need only one TICK and not tens or hundreds.
Is there help give better results, and I thank you in advance -
RE: How to stop a buy or sell order when the condition is met with one per tick?posted in Questions & Answers
I appreciate your efforts, I am very grateful to you for helping me
-
RE: How to stop a buy or sell order when the condition is met with one per tick?posted in Questions & Answers
@trader-philipps said in How to stop a buy or sell order when the condition is met with one per tick?:
Okay. Can there be sell and buy at the same time?
Preferably one direction,SELL OR BUY
-
RE: How to stop a buy or sell order when the condition is met with one per tick?posted in Questions & Answers
@trader-philipps said in How to stop a buy or sell order when the condition is met with one per tick?:
Is it necessary to work only on current candle? I think the x> x< function will not work propperly on candle ID0.
Is it a must that a sell follows a buy and vice versa?What I specifically want in the event of a sale condition opens only one sale, and in the case of a BUY condition is opened only one BUY.
I don't want to repeat the same BUY or repeat the same sale successively
The candle does not matter but prefer to be current -
How to stop a buy or sell order when the condition is met with one per tick?posted in Questions & Answers
I've put a time filter to minimize one per tick .
But as you can see in the picture, there are sometimes several consecutive long positions and several short positions.
I want every each buy each followed by sell .
I have used NO TRADE ., but I found that sometimes it doesn't apply the terms well, as it doesn't work on some repetitive points.
Is there any solution؟
-
RE: How I can open the same number of long positions in the sale, and vice versa in the BUY with a ONE increaseposted in Questions & Answers
Thank you very much I will try the experiment when the market starts and I will give you the result.
Thanks again, and I appreciate your time and effort -
RE: How I can open the same number of long positions in the sale, and vice versa in the BUY with a ONE increaseposted in Questions & Answers
In this project there is no direct closure but after several buy and several sale is verified the total profit and loss and all transactions are closed once
-
RE: How I can open the same number of long positions in the sale, and vice versa in the BUY with a ONE increaseposted in Questions & Answers
@trader-philipps said in How I can open the same number of long positions in the sale, and vice versa in the BUY with a ONE increase:
Okay, that helps a lot. The easiest approach is to have an integer variable as a multiplicator for the lot size. Each time you open a trade for instance (or when one trade is closed depending on your preference) you would adjust that counter variable +1
I'm currently on my mobile phone and can't take a look at your shred project in detail.
Let me know if you require further help to implement the suggested solution.I need help because I did not understand the solution, since I tried a lot of variables and methods and did not work
-
RE: How I can open the same number of long positions in the sale, and vice versa in the BUY with a ONE increaseposted in Questions & Answers
Yes I am using Google Translate, I attached a picture explanation.
as you see :
If the 5-day moving average crosses the 20-day moving average on a quarter hour candle for above the trade size will be : 0.01 then if If the 5-day moving average crosses the 20-day moving average on a quarter hour candle for Down the trade size should be (buy lots + add new) (0.01+0.01) total (0.02) and if the buy again a crosses to above i need to the size 0.03.

-
RE: How I can open the same number of long positions in the sale, and vice versa in the BUY with a ONE increaseposted in Questions & Answers
More than ten days we are looking for a solution, we have not found
-
RE: How I can open the same number of long positions in the sale, and vice versa in the BUY with a ONE increaseposted in Questions & Answers
General idea:
A position will be opened for each bar for each direction, and if the trend changes, the same positions will be opened in the previous direction + increase the position for each bar again.
When profit reaches more than loss, it closes all trades once.