---
id: "P:cAlgo.API.CompilationOptions.OutputAlgoFilePath"
kind: "property"
type: "T:cAlgo.API.CompilationOptions"
url: "https://help.ctrader.com/ctrader-algo/references/Compilation/CompilationOptions/OutputAlgoFilePath/"
---

> Documentation index for agents: https://help.ctrader.com/ctrader-algo/llms.txt · machine index: https://help.ctrader.com/ctrader-algo/api.json

# CompilationOptions.OutputAlgoFilePath

Member of [CompilationOptions](https://help.ctrader.com/ctrader-algo/references/Compilation/CompilationOptions/index.md).

## OutputAlgoFilePath

Gets / Inits output algo file path, if not provided default platform algo path will be used.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
public string OutputAlgoFilePath {get; set;}
```

Python:

```python
compilationOptions.OutputAlgoFilePath: str
```

### Returns

`string` — 

Available since cAlgo.API 5.1.

### Examples

C#:

```csharp
var options = new CompilationOptions { OutputAlgoFilePath = @"C:\Algos\Sample cBot.algo" };
var result = Compiler.Compile(@"Sample cBot\Sample cBot.csproj", options);
if (result.Succeeded)
    Print("Algo file saved to {0}", options.OutputAlgoFilePath);
```

Python:

```python
options = CompilationOptions()
options.OutputAlgoFilePath = r"C:\Algos\Sample cBot.algo"
result = api.Compiler.Compile(r"Sample cBot\Sample cBot.csproj", options)
if result.Succeeded:
    api.Print(f"Algo file saved to {options.OutputAlgoFilePath}")
```

