Solo gli utenti che hanno acquistato o noleggiato il prodotto possono lasciare commenti
K Wong  
Andrey Barinov #:
Hi, you need to use Grid signal, not Martingale, in your case

Dear Mr Barinov,

Thank you for your quick reply.  I will test if this works. 

Thanks again and wish you have a wonderful week ahead!

K Wong  
Karen Wong T #:

Dear Mr Barinov,

Thank you for your quick reply.  I will test if this works. 

Thanks again and wish you have a wonderful week ahead!

Dear Mr Barinov,

I have just tried using the Grid.  After the code generated, there seems to be no option to set the "distance/gap/pipstep" between next trades.  Would you mind to advise how to set these distances?  Many thanks in advance for your kind assistance.



Andrey Barinov  
Karen Wong T #:

Dear Mr Barinov,

I have just tried using the Grid.  After the code generated, there seems to be no option to set the "distance/gap/pipstep" between next trades.  Would you mind to advise how to set these distances?  Many thanks in advance for your kind assistance.



It should be taken from the Signals section => distance from previous order
K Wong  
Andrey Barinov #:
It should be taken from the Signals section => distance from previous order

Thank you Mr Barinov.  

I think the parameter can be taken from:

Entry filter => Min Price Gap

Many thanks.



Andrey Barinov  
K Wong #:

Thank you Mr Barinov.  

I think the parameter can be taken from:

Entry filter => Min Price Gap

Many thanks.



Yes, exactly :)
stefb2  

Hi. I'm trying to create a martingale bot for BTCUSD. The bot works pretty much as expected except one issue:

it doesn't set SL and TP on trade open but it kind of waits until the price actually reaches the actual open price and because of spread it can leave some time without SL and TP set until the price retraces back to the open price. This is very risky because if the price continue to go in opposite direction or spikes it may remain uncovered triggering margin call in my account.

How can I avoid this and have it open the trade with already TP and SL set?



Andrey Barinov  
stefb2 #:

Hi. I'm trying to create a martingale bot for BTCUSD. The bot works pretty much as expected except one issue:

it doesn't set SL and TP on trade open but it kind of waits until the price actually reaches the actual open price and because of spread it can leave some time without SL and TP set until the price retraces back to the open price. This is very risky because if the price continue to go in opposite direction or spikes it may remain uncovered triggering margin call in my account.

How can I avoid this and have it open the trade with already TP and SL set?



Hi,

you need to check the Experts / Journal tabs for error messages. If your scheme is correct, the SL and TP should be placed on the next tick after the initial order is placed.

You can share more details with me via private messages.

Regards,

Andrey

stefb2  

How can I do it if instead of alternating trades I want it to open trade in same direction of last winning trade? For example, opens long, if long won opens another long, but if long was lost then open a short with double lot size?


Basically a martingale following the trend.

I tried to read the documentation and watch the examples but I cannot find the element or how to connect it to make it so that it opens the following trade in the direction of last winning one.

Andrey Barinov  
stefb2 #:

How can I do it if instead of alternating trades I want it to open trade in same direction of last winning trade? For example, opens long, if long won opens another long, but if long was lost then open a short with double lot size?


Basically a martingale following the trend.

I tried to read the documentation and watch the examples but I cannot find the element or how to connect it to make it so that it opens the following trade in the direction of last winning one.

There is a Reversing Martingale built in example. So, you need to change a couple of things in it. Instead of a loosing trade, change it to winning, and instead of reversing make it continue trading in the same direction.

Andrey

jaybirdy  
Hi.  I'm trying to create a simple entry filter using Bollinger Bands. 

When the current bar open is above the upper BB band, only allow BUY trades.
When the current bar open is below the lower BB band, only allow SELL trades.

I've compared my custom entry filter to every existing entry filter, and tried every arrangement of the BB_Entry Filter Buy (and sell) inputs... switching back and forth between "Logical True/False" vs "Condition" and shuffling the sequence of the inputs.
(I confess the "X = Y" button remains mysterious to me.)

For "allow buys from" I choose BB_Entry Filter Buy, and similar for sell.

In the Strategy Tester, it asks me for the BB inputs...  but during Testing, this filter never gets implemented.


 
Andrey Barinov  
jaybirdy #:
Hi.  I'm trying to create a simple entry filter using Bollinger Bands. 

When the current bar open is above the upper BB band, only allow BUY trades.
When the current bar open is below the lower BB band, only allow SELL trades.

I've compared my custom entry filter to every existing entry filter, and tried every arrangement of the BB_Entry Filter Buy (and sell) inputs... switching back and forth between "Logical True/False" vs "Condition" and shuffling the sequence of the inputs.
(I confess the "X = Y" button remains mysterious to me.)

For "allow buys from" I choose BB_Entry Filter Buy, and similar for sell.

In the Strategy Tester, it asks me for the BB inputs...  but during Testing, this filter never gets implemented.


Hi,

x=y is not a button, but just an icon for this kind of elements.

I think what you need is to replace this type of element "Variable" with AND element. All the other connections seem fine. Just remove Variables, and replace them with simple AND elements. Should work fine.

Andrey

jaybirdy  
Andrey Barinov #:

Hi,

x=y is not a button, but just an icon for this kind of elements.

I think what you need is to replace this type of element "Variable" with AND element. All the other connections seem fine. Just remove Variables, and replace them with simple AND elements. Should work fine.

Andrey

Thank you for your quick response.  Will try.
jaybirdy  

Can you pls clarity the inputs-outputs of the Variable (Bool) element?  I will be more specific...

jaybirdy  
Can you pls clarity the inputs-outputs of the Variable (Bool) element?

My (hazy) understanding is this:

This element will output a True or False, and can be used as a "switch", in some cases to enable/disable certain other elements:


In the attached image:

The first box represents the default setting of the "switch".
You can add multiple individual inputs, by using the "+"  button at the bottom.
For each input "condition" you attach, you can then (for each individual input) determine whether the switch will turn on/off (true/false) for it.
And that determination is made in the box directly beneath the condition.

What does it mean when you attach a "logical true/false" directly to the Variable (Bool) element?

That is, what is the difference between a "condition" input, and a "logical true/false" input -- aren't both of these just conditions?


If multiple inputs are there, how does it determine which one gets precedence?

Andrey Barinov  
jaybirdy #:

Can you pls clarity the inputs-outputs of the Variable (Bool) element?  I will be more specific...

sorry, I do not understand your question. As I said above, for your purposes you do not need Variable element, And is enough.

Variable is an element that can store a value, which can have different output depending on current conditions. It is usually used for counters, to store the value from previous tick, or it can store a true/false value, also from previous tick / ticks until a condition changes. Basically, it is a set of conditions and corresponding values. Depending on the condition which is currently true, it will output different value. And this output value is the same until the condition changes.

If multiple conditions are true at the same time, it will output the first one. You should design it in a way that only one condition is true at every given moment
jaybirdy  
Andrey Barinov #:

sorry, I do not understand your question. As I said above, for your purposes you do not need Variable element, And is enough.

Variable is an element that can store a value, which can have different output depending on current conditions. It is usually used for counters, to store the value from previous tick, or it can store a true/false value, also from previous tick / ticks until a condition changes. Basically, it is a set of conditions and corresponding values. Depending on the condition which is currently true, it will output different value. And this output value is the same until the condition changes.

If multiple conditions are true at the same time, it will output the first one. You should design it in a way that only one condition is true at every given moment
Okay, "it will output the first one"... and "design in a way that only one condition is true at any given moment" ... both statements help me understand it.  thank you.


I will try to clarify my questions:

Does the first box (in the image I attached above) represent your chosen default setting for the variable?

My understanding is: you can add multiple individual inputs, by using the "+"  button at the bottom.

For each input "condition" you attach, you can then (for each individual input) determine whether the switch will turn on/off (true/false) for it.
And that determination is made in the box directly beneath the condition.

So, what does it mean when you attach a "logical true/false" directly to the Variable (Bool) element?
That is, what is the difference between a "condition" input, and a "logical true/false" input -- aren't both of these just conditions?

Andrey Barinov  
jaybirdy #:
Okay, "it will output the first one"... and "design in a way that only one condition is true at any given moment" ... both statements help me understand it.  thank you.


I will try to clarify my questions:

Does the first box (in the image I attached above) represent your chosen default setting for the variable?

My understanding is: you can add multiple individual inputs, by using the "+"  button at the bottom.

For each input "condition" you attach, you can then (for each individual input) determine whether the switch will turn on/off (true/false) for it.
And that determination is made in the box directly beneath the condition.

So, what does it mean when you attach a "logical true/false" directly to the Variable (Bool) element?
That is, what is the difference between a "condition" input, and a "logical true/false" input -- aren't both of these just conditions?

Your understanding is correct. 

First, there is a default value.

Also, with "+" icon you can add another pair / pairs of Conditions + Output for this condition. Condition for the output is ABOVE the value. So, in your image first is default / start output value. Than, additional pairs of Condition + Value.

There are different types of variables. With Bool variable it may be a bit confusing, because both conditions and outputs are boolean :).

jaybirdy  
Andrey Barinov #:

Your understanding is correct. 

First, there is a default value.

Also, with "+" icon you can add another pair / pairs of Conditions + Output for this condition. Condition for the output is ABOVE the value. So, in your image first is default / start output value. Than, additional pairs of Condition + Value.

There are different types of variables. With Bool variable it may be a bit confusing, because both conditions and outputs are boolean :).

This helps me a great deal.  Thank you.
jaybirdy  
Andrey Barinov #:

Hi,

x=y is not a button, but just an icon for this kind of elements.

I think what you need is to replace this type of element "Variable" with AND element. All the other connections seem fine. Just remove Variables, and replace them with simple AND elements. Should work fine.

Andrey

Your suggestion worked!  (I also added a new element to disallow opening any trades between the BB's, which further helped.)
I'm trying to wrap my head around all the new powers at my disposal!  Hahaha. 
Thank you for all your help yesterday; I appreciate your time and patience.
jaybirdy  

Hello again Andrey.

I'm trying to create a simple entry/exit signal -- using the Trix Oscillator's inflection points as the signal.

When creating the EA, this new Trix Oscillator Inflection Signal is the only signal that I chose.

Yet when I run it in the Strategy tester, this entry signal is completely ignored and entries are made on every single candle.

(The X's on the chart mark the only places I would expect an entry/exit.)


(1) Why could it be ignoring my signal?  (I've checked the greater than/less than comparison math over and over again.)

(2) With no other signal enabled, what could be triggering all these entries?

(3) When saving this as a new "Signals" scheme, why am I not asked "Get <<Use Exit Signal>> from" in the same way it asks for "Get <<Use Entry Signal>> from" ?


I appreciate any guidance you can give me.

Solo gli utenti che hanno acquistato o noleggiato il prodotto possono lasciare commenti