Topics
04 Apr 2024, 15:24
 2
 279
 4
19 Dec 2023, 10:33
 2
 305
 0
15 Dec 2023, 08:08
 1
 284
 0
14 Dec 2023, 08:45
 1
 349
 0
14 Dec 2023, 08:34
 1
 269
 0
08 Dec 2023, 15:52
 0
 308
 0
03 Mar 2023, 17:10
 3
 1009
 4
Replies

Shares4UsDevelopment
11 Jun 2024, 07:27 ( Updated at: 11 Jun 2024, 07:29 )

double post


@Shares4UsDevelopment

Shares4UsDevelopment
13 Apr 2024, 13:36 ( Updated at: 14 Apr 2024, 08:02 )

try this

try:

 

 

     protected override void OnBar()
        {
            if (Positions.Count > 0)
                return;

            var OpenPrice = Bars[Bars.Count - 1].Open;
            var FinishedBar = Bars[Bars.Count - 2];

            if (FinishedBar.Open < FinishedBar.Close) // Bull
            {
                var Lowest = Bars.LowPrices.TakeLast(5 + 2).Skip(2).Min(p => p);
                if(Lowest< OpenPrice)
                ExecuteMarketOrder(TradeType.Buy, SymbolName, Symbol.VolumeInUnitsMin, "",(OpenPrice - Lowest)/Symbol.PipSize, 25);
            }
        }



@Shares4UsDevelopment

Shares4UsDevelopment
13 Apr 2024, 11:07 ( Updated at: 14 Apr 2024, 08:02 )

RE: RE:

plusnagsberga said: 

PanagiotisChar said:

Hi there,

There are several errors there which are self descriptive. Did you just copy paste the code from somewhere?

Aieden Technologies

Need help? Join us on Telegram

Need premium support? Trade with us

 

Yes, I copied that from chat GPT but I don't understand for example why RSI could not be found when I am using cAlgo.Indicators.

ChatGPT sucks in programming, is does not know anything about SW versions, it messes up properties and methods; in short ChatGPT is not a programmer.
So Never rely on code from ChatGPT that might build. but ensure you understand what is written and it works the way it should.


@Shares4UsDevelopment

Shares4UsDevelopment
13 Apr 2024, 11:03 ( Updated at: 14 Apr 2024, 08:02 )

support my suggestion

Already a suggestion so Please support it at https://ctrader.com/forum/suggestions/43376


@Shares4UsDevelopment

Shares4UsDevelopment
13 Apr 2024, 10:59

RE: Funds withdrawal to standard bank Iban

PanagiotisCharalampous said: 

Hi there,

We can't do this since the funds are not actually held by cTrader but by your broker.

Best regards,

Panagiotis

you can add the functionality and let the broker decide if he wants to implement it.
Most professional traders have some sort of rules about withdrawals and can benefit from automating it.


@Shares4UsDevelopment

Shares4UsDevelopment
13 Apr 2024, 10:56 ( Updated at: 13 Apr 2024, 11:00 )

no delete function for a wrong reply?!?

oops


@Shares4UsDevelopment

Shares4UsDevelopment
04 Apr 2024, 15:07

RE: RE: RE: RE: RE: RE: RE: RE: RE: RE:

Shares4us said: 

It is a pitty we will probably never know why it failed but Spotware knows because they silently fixed it in 1.7.

case closed.

And now it;s back in automate 1.8 !!!!!!


@Shares4UsDevelopment

Shares4UsDevelopment
04 Apr 2024, 14:57

try AccessRights = AccessRights.FullAccess

try  AccessRights = AccessRights.FullAccess


@Shares4UsDevelopment

Shares4UsDevelopment
19 Dec 2023, 10:30

And also the position (Chart or IndicatorArea(s))


@Shares4UsDevelopment

Shares4UsDevelopment
19 Dec 2023, 10:14

RE: 'Remove All Drawings ' does not remove all drawings!

firemyst said: 

If you don't post screen captures or sample code reproducing the issue, how are you expecting people to help you?

No need for help! just posting a Bug.


@Shares4UsDevelopment

Shares4UsDevelopment
15 Dec 2023, 08:17

How do you calculate the BreakEven ??
Are yout taking into account : Spread, Commission and Swaps and bad filling?


@Shares4UsDevelopment

Shares4UsDevelopment
15 Dec 2023, 08:12

RE: Partial Close and Comments in cAlgo

Spotware said: 

Order comments and partial close of positions are now available in the new trading API. Please see: /forum/whats-new/1937

404 on the link!


@Shares4UsDevelopment

Shares4UsDevelopment
15 Dec 2023, 08:10

Losing signals on lines

You might miss out on signals then. A line always need 2 points.
So Spotware please do not change to lines.


@Shares4UsDevelopment

Shares4UsDevelopment
14 Dec 2023, 14:24

RE: ‘building’ Bug in 1.0.8 still not fixed

I sent a video to support showing the problem

we had a session together and the problem was repeated & explained by me.

Support found a workaround : 

in project file 
in  <PropertyGroup>
add    <OutDir>bin\$(Configuration)\</OutDir>

this fixes the problem after doing new build.

Support makes a ticket to overcome this flaw in the next version.

Spotware thanks for the effort!
 


@Shares4UsDevelopment

Shares4UsDevelopment
14 Dec 2023, 08:39

Is available in 4.8.30


@Shares4UsDevelopment

Shares4UsDevelopment
11 Dec 2023, 15:13

Already tried:
      Color.Transparent 
     or “00000000” as color?
 


@Shares4UsDevelopment

Shares4UsDevelopment
11 Dec 2023, 08:39

Would be nice to get an answer fron Spotware on this ??!!


@Shares4UsDevelopment

Shares4UsDevelopment
08 Dec 2023, 11:45 ( Updated at: 11 Dec 2023, 08:38 )

As far as my understanding goes the reverse method or button closes the current position and opens a new one with the same credentials.
It is unclear to me if the reversed position has the same stoploss & takeprofit in pips but you can easily check that in demo mode.


@Shares4UsDevelopment

Shares4UsDevelopment
05 Dec 2023, 08:41

first define what you mean with breaking.
Closes above previous close,
Price passes above previous close,
Opens above previous close,
3 consecutive priceticks are above previous close,
…….

Than look at the ctrader guide of making cBots and fit your condition like:

var PrevClose = Bars.Last(1).Close;
if (Symbol.Bid > PrevClose) 
    ExecuteMarketOrder(TradeType.Buy, SymbolName, 1000,"", StopLossPips, TakeProfitPips)


or something like :

if (Bars.LastBar.Close > PrevClose) 
    ExecuteMarketOrder(TradeType.Buy, SymbolName, 1000,"", StopLossPips, TakeProfitPips)

or anyother condition you can come up with

 


@Shares4UsDevelopment

Shares4UsDevelopment
05 Dec 2023, 08:16

Just use:
Position..ModifyStopLossPrice(newStopLossPrice);
in stead of 
ModifyPosition(position, newStopLossPrice, null);


@Shares4UsDevelopment